I created a poll using a form builder (survey monkey) and would like to have users be redirected to another page after they click submit. Unfortunately, the entire poll is in an iframe and I cannot pull the submit button very easily. I was wondering if there was any way to detect the submit button within the iframe and inject an "onclick="location.href"" when the button is pressed.
Thank you!!!
ps: All I have of the form is the link.
07-16-2012, 03:18 AM
MarPlo
Hi,
If the page with the iframe is on the same domain, you can call a JavaScript function in the main page from iframe.
Example, added in the button in iframe: