jaymc Posted November 3, 2006 Share Posted November 3, 2006 Ok Im trying to use javascript to set a window.locatiom / hrefBasically, I have a webpageOn that webpage is 2 IFRAMESIframe 1 is called [b]frame1[/b] and Iframe 2 is called [b]frame2[/b]Now, inside frame1 is a webpage which contains the following code[code]<a href=# OnClick="opener.frames['frame2'].location.href='http://google.co.uk'"[/code]So in otherwords, its trying to load the google site into iframe2 from iframe 1It doesnt work.Do i need to do something like[b]parent.parentname.opener.frames['songs'][/b]Really stuck... Link to comment https://forums.phpfreaks.com/topic/26011-tryin-to-load-content-in-iframe-from-iframe/ Share on other sites More sharing options...
fenway Posted November 3, 2006 Share Posted November 3, 2006 It would make sense to go through the parent, or window.top, but I don't know if the latter works in FF. Link to comment https://forums.phpfreaks.com/topic/26011-tryin-to-load-content-in-iframe-from-iframe/#findComment-119077 Share on other sites More sharing options...
jaymc Posted November 3, 2006 Author Share Posted November 3, 2006 yeh window.top worked greatthanks! Link to comment https://forums.phpfreaks.com/topic/26011-tryin-to-load-content-in-iframe-from-iframe/#findComment-119369 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.