Mega Code Archive

 
Categories / JavaScript Tutorial / HTML Tags
 

Reload iframe to another url

< 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.rntsoft.com"></iframe> <p> <a href="" onclick="parent.MyFrame.location.replace('1.html');return false">choice 1</a><br /> <a href="" onclick="parent.MyFrame.location.replace('2.html'); return false">choice 2</a><br /> </p> </body> </html>