-
Navigating iframes
I know vb.net language but I'm trying to learn HTML code and trying to work something out.
I have 2 iframes and i want to be able to click a button on Iframe1 and make Iframe2 navigate to a set URL.
Could someone possibly give me some ideas how to make this possible??
-
Top page:
Code:
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<iframe name="iframe1" src="about:blank" width="300" height="300" scrolling="auto" frameborder="1"></iframe>
<iframe name="iframe2" src="mypage.htm" width="300" height="300" scrolling="auto" frameborder="1"></iframe>
</body>
</html>
mypage.htm:
Code:
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<a href="http://www.dynamicdrive.com/" target="iframe1">Dynamic Drive</a>
</body>
</html>