faqts : Computers : Programming : Languages : JavaScript : Frames

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

54 of 62 people (87%) answered Yes
Recently 8 of 10 people (80%) answered Yes

Entry

How to get the location of another frame whose url is in a different domain ?

Aug 29th, 2000 08:28
Martin Honnen, Quick Zhou,


Well, access to pages on another host is denied. In IE you can't do it 
all (unless a signed active x is used which exposes the needed 
properties to scripting), with NN4 you need trusted script to call
  netscape.security.PrivilegeManager.enablePrivilege
('UniversalBrowserRead');
  alert(parent.frameName.location.href);
Read entry
http://www.faqts.com/knowledge-base/view.phtml/aid/840/fid/125
to learn more about trusted scripts or consider signing your scripts or 
serve them via https.