Help with iframe redirect after clicking submit

MikeHustle

Power Member
Joined
Mar 1, 2009
Messages
635
Reaction score
241
Can anyone share some clues to redirecting an iframe after the submit button has been clicked?
 
What kind of form are you using, fill in the blank or make a selection?
Is the submit button inside the iframe?
Or is the submit button somewhere else on the page and you want to change whats in the iframe when it's clicked?
 
Put the code below in the <head>. My thread http://www.blackhatworld.com/blackhat-seo/black-hat-seo-tools/276584-tutorial-integrate-cpa-frames-regular-form.html also covers this code and more.
Code:
<script type="text/javascript">
var oldHistory = history.length;
setInterval("checkHistory()", 1250);

function checkHistory() {
     if (oldHistory < history.length) {
          window.location.href = "[color=blue]http://www.yoursite.com/page2.html[/color]";
     }
}
</script>
 
You can also add an additional form (something like confirm your email) with the excellent code shared by artizhay and grab the email address of your lead for further use upon iframe submission. 1 stone, 2 birds... ;)
 
Back
Top