How does this help the author? This seems like an awful way to do anything. | [reply] |
<HTML>
<STYLE>
BODY { SCROLLBAR MARGIN:0; BORDER:NONE; overflow:hidden; }
</STYLE>
<BODY TOPMARGIN=0 BOTTOMMARGIN=0 LEFTMARGIN=0 RIGHTMARGIN=0 SCROLL=NO>
<IFRAME ID=MYFRAME WIDTH=100% HEIGHT=100% SRC="http://www.bing.com">
</IFRAME>
<SCRIPT>
function CheckFrame()
{
var URL = "";
var SUCCESS = 0;
try
{
URL = document.getElementById('MYFRAME').contentWindow.location.hr
+ef;
SUCCESS = 1;
} catch (e) { SUCCESS = 2; }
if (SUCCESS == 2)
{
SUCCESS = 0;
try
{
URL = document.getElementById('MYFRAME').contentDocument.locatio
+n.href;
SUCCESS = 1;
} catch (e) { SUCCESS = 2; }
}
if (SUCCESS == 2) return;
alert(URL);
}
setInterval(CheckFrame, 4000);
CheckFrame();
</SCRIPT>
| [reply] [d/l] |
We can't be reading the same question, there's nothing suggesting that this is what the user wanted to achieve. You can always ask them if unsure, an unrelated, non functional reply just adds noise
| [reply] |