Posted by ... on 11/03/06 23:20
Semi-solution...
Other domains still cannot be read but...
JS checks and displays a proper message:
<script language="JavaScript" type="text/javascript">
<!--
function refreshURL()
{
setTimeout("refreshURL()",1000);
try
{
domain = window.testiframe.document.domain;
var url = window.testiframe.location.href;
document.urlform.url.value = url;
}
catch(e)
{
document.urlform.url.value="Cannot read URL";
}
}
-->
</script>
JS is called continuously and the url of the frame displayed in
textfield:
<body onload="refreshURL()">
<iframe name="testiframe" src="MYURL" align=right valign=bottom
width=100% height=500px frameborder="NO" border="1"></iframe>
<form name="urlform" action="NOTHING">
<input type="text" size="70" id="url" name="url" value="">
</form>
</body>
Is there really NO way to do this for
Navigation:
[Reply to this message]
|