C
Ciaran
Hi I'm trying to write a function that checks the url or title of a page in
an iframe nested in the same page. I can do it if all pages are local but I
need the iFrame to load a webpage which seems to be tripping the security
feature. Is there any way around this or is there some other way I can get
an update on what's going on in the iFrame?
Here's the code in my local file:
javascript:
function checkpage(){
alert(hid.document.URL);
}
html:
<iframe name="hid" id="hid" onload="checkpage()"
src='http://www.google.com'></iframe>
Thanks,
Ciarán
an iframe nested in the same page. I can do it if all pages are local but I
need the iFrame to load a webpage which seems to be tripping the security
feature. Is there any way around this or is there some other way I can get
an update on what's going on in the iFrame?
Here's the code in my local file:
javascript:
function checkpage(){
alert(hid.document.URL);
}
html:
<iframe name="hid" id="hid" onload="checkpage()"
src='http://www.google.com'></iframe>
Thanks,
Ciarán