JavaScript Tutorial/HTML Tags/iframe
Reload iframe to another url
<source lang="javascript">
<html> <head> <title>iFrame</title> </head> <body> <script type="text/javascript"> function handleResponse(choice) {
var pick = frames["MyFrame"]; pick.document.writeln(choice);
} </script> <iframe id="MyFrame"
name="MyFrame" style="width:800px; height:800px; border: 0px" src="http://www.wbex.ru"></iframe>
<a href="" onclick="parent.MyFrame.location.replace("1.html");return false">choice 1</a>
<a href="" onclick="parent.MyFrame.location.replace("2.html"); return false">choice 2</a>
</body> </html></source>