Log in

View Full Version : Navigating iframes



dizzydaz
06-18-2014, 07:51 PM
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??

jscheuer1
06-19-2014, 01:51 AM
Top page:


<!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:


<!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>