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... Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
jaymc Posted November 3, 2006 Author Share Posted November 3, 2006 yeh window.top worked greatthanks! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.