Gnub Posted February 26, 2007 Share Posted February 26, 2007 Is there a way for me to change the IFrame URL through the use of a form. Example... I click a button on a form, and the page inside the IFrame changes to a .php file i want loaded. Cheers in advance. Link to comment https://forums.phpfreaks.com/topic/40167-iframes-and-changing-its-url/ Share on other sites More sharing options...
monk.e.boy Posted February 26, 2007 Share Posted February 26, 2007 yes through Javascript. You'll have to search google, but I think if you name the IFrame you can do something like: document.parent.my_iframe.location='http://www.site.com'; monk.e.boy Link to comment https://forums.phpfreaks.com/topic/40167-iframes-and-changing-its-url/#findComment-194342 Share on other sites More sharing options...
Gnub Posted February 26, 2007 Author Share Posted February 26, 2007 thanks Monk. Link to comment https://forums.phpfreaks.com/topic/40167-iframes-and-changing-its-url/#findComment-194343 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.