Iframing with Forms

hey all,

i need to have an iframe display on my website page with a form coming from another site inside the frame. what would be the easiest solution to have my page redirect after the form is submitted in the iframe.

Thanks!
JMRFan4LifeAsked:
Who is Participating?
 
Greg AlexanderLead DeveloperCommented:
After the form is submitted you could

<script>
parent.window.location="yoururlhere";
</script>
0
 
CodebotCommented:
parent.document.location.href = "http://site.com";
 or
window.top.location.href = "http://www.site.com";
0
 
JMRFan4LifeAuthor Commented:
Can I pass a variable from the parent page as the URL as I am looking to run this on multiple sites using the same form
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.