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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Closing a window after submitting a form via email

Status
Not open for further replies.

theprophet

Programmer
Nov 2, 2000
16
US
I have a form which I am emailing using the following:

<FORM ENCTYPE="text/plain" NAME="test" METHOD='POST' ACTION='mailto:name@whereever.com' onSubmit="return submitForm()">

where submitForm returns 'true'

I was just wondering how I can close the window (without an alert message) after the form is submitted via email.

Any help would be greatly appreciated.
 
Code:
//your function code
[b]window.close();[/b]

Cat, the other other white meat
 
My function is as follows:

function submitForm()
{
return true
}


I've tried the window.close() within this function and it does not work
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top