Mega Code Archive

 
Categories / JavaScript DHTML / HTML
 

ContentWindow Example

<html> <body> <script language="JavaScript">     function myLocation() {         alert(document.all.myFrame.contentWindow.location);     } </script> <iframe id="myFrame" src="http://www.rntsoft.com" style="width:200;"> </iframe> <br> <button onclick="myLocation();">Location of Frame</button> </body> </html>