Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

confirm email sent w/popup?

Status
Not open for further replies.

zolah

Technical User
May 21, 2001
13
US
I am very new at this. Have a very simple form that emails, but I would like to make a popup or even a new .html that tells the user it was sent successfully. Here is a link to my form.


any help would be appreciated
 
change the submit button to a regular button
<input type=&quot;button&quot; onClick=&quot;myFunction();&quot; value=&quot;submit&quot;>

in the head of your document include the following:
<script>
<!----
function myFunction(){
document.form[1].submit();
windowprops = &quot;left=50,top=50,width=200,height=200&quot;;
confirm = window.open(&quot;some_page.html&quot;,&quot;Email Sent&quot;,windowprops);
}
--->
</script>

This otta do it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top