mdcoll
12-23-2003, 09:14 AM
Is there a way to automatically close the web page after the user clicks the "submit" button? I have tried the following code but it seems to not work. Thanks.
<form action="mailto:email@address.com" method="post" enctype="test/plain" onSubmit="window:close();">
<p>Name:
<input type="text" name="textfield">
</p>
<p>
<input type="submit" name="Submit" value="Submit" >
<input type="reset" name="Reset" value="Reset">
</p>
</form>
<form action="mailto:email@address.com" method="post" enctype="test/plain" onSubmit="window:close();">
<p>Name:
<input type="text" name="textfield">
</p>
<p>
<input type="submit" name="Submit" value="Submit" >
<input type="reset" name="Reset" value="Reset">
</p>
</form>