hello there. i posted this in the "Looking for such a script or service" thread, but i figured it couldn't hurt to ask here too. my apologies if this is frowned upon.
i have a form that has to post to two different places, and i have a script that does it. only problem is, it has to open a new window to do all the form processing, and i would like that window to close automatically. i'm hoping that all i have to do is add a command to the script that tells it to close the window once the form is processed. here's the script:
<script>
<!--
function submitToTP()
{
document.form.action =
"https://www.topproduceronline.com/LeadToolkit.asp"
document.form.target =
"onewindowname"
document.form.submit();
}
function submitToFORM()
{
document.form.action =
"http://www.newhomeconnection.com/forms/fm-test.php"
document.form.target =
"onewindowname"
document.form.submit();
}
if anyone has any ideas, i would really appreciate the help!
thanks!



Reply With Quote


Bookmarks