Click here to Skip to main content
15,886,578 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hi, I use an affiliate program for rental cars that gave me a widget with some inputs and a search button (the widget is an iframe on my website)
When someone presses 'search' it opens the affiliate's website with search results, I would like the results to appear in the iframe itself without changing window!
Any ideas? or alternatives?
Thanks in advance!
Posted

1 solution

try this.. :)

if you have to refresh iframe then give same src once again to iframe

like this....,

html

HTML
 <iframe height="300px" width="500px" src="www.niravprabtani.blogspot.in">
 </iframe>

<span onclick="RefreshIframe()">Refresh</span>



Java script


JavaScript
 function RefreshIframe()
{
 document.getElementById("MyFrame").src = "www.niravprabtani.blogspot.in";
}
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900