Created
February 6, 2013 18:47
-
-
Save jwebgordon/4724793 to your computer and use it in GitHub Desktop.
Redirect the main window of the iframed form
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script> | |
<script> | |
$(document).ready(function(){ | |
function openParentWindow(){ | |
if($("form.hs-form").length>0){ | |
$("form.hs-form").attr('target','_top'); | |
} | |
else{ | |
setTimeout(openParentWindow,50); | |
} | |
}; | |
setTimeout(openParentWindow, 50); | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment