If the url of the second frame eg. is www.google.com
then i did not work !
any one who know haw to fix this ?
Jack Slocum wrote:
Let's say the frame you want to know the url of is called "viewframe" (specified like <frame src="myframe.html" name="viewframe">).
For another frame to access it's location:
<script language=Javascript>
theOtherFramesLocation = window.parent.viewframe.document.location;
// Test it
alert(theOtherFramesLocation);
</script>