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