| Welcome to WebmasterWorld Guest from 188.8.131.52 |
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
|Pubcon Gold Sponsor 2015! |
Trying to change the src of an iframe however its not working?
document.frames['gorsel'].location.href = 'http://www.google.com';
<iframe id="gorsel" src="about:blank"></iframe>
You need to wait until page is load, use onload on body to call function.
ps Also try "src" instead of "location.href"
[edited by: daveVk at 11:22 pm (utc) on Jan. 27, 2008]
All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved