HighDots Forums  

check the content of another frame or iFrame tripping browser security

JavaScript discussion (multi-lingual) JavaScript discussion (alt.comp.lang.javascript)


Discuss check the content of another frame or iFrame tripping browser security in the JavaScript discussion (multi-lingual) forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Ciaran
 
Posts: n/a

Default check the content of another frame or iFrame tripping browser security - 07-24-2007 , 09:52 AM






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



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.