Reputation: 11
It's a cross domain iframe ( with no control on content of iframe.)
Here is fiddle url http://jsfiddle.net/biggenius/wH4p7/
But it is not working. I need to redirect user to google.com after clicking "Go" Button.
Thanks
Upvotes: 1
Views: 536
Reputation: 10874
The code for your Go button need to be on that iframe then not of the other page as the other page has no control over the content like you stated yourself. There is no way around it using iframe.
After if you loaded the content inside a div via ajax it would be very easy to achieve and if it's only the little search box it should work just fine.
Iframes are a nightmare and in 99% of the time they can be avoided.
You could however change the src attribute and that will make another page load inside the iframe.
Upvotes: 1