Forums

This topic is locked

Closing a browser window on submit

Posted 05 Sep 2002 23:17:07
1
has voted
05 Sep 2002 23:17:07 pete morales posted:
How on Earth do I close a browser window on submission of a form.
HELP!
Someone......anyone?

Replies

Replied 17 Sep 2002 18:07:51
17 Sep 2002 18:07:51 Stefan P replied:
Add the following javascript to the <INPUT> tag:

<INPUT type="submit" onClick="javascript:window.close()">

Hope this helps.

Stefan
Replied 18 Sep 2002 21:20:41
18 Sep 2002 21:20:41 pete pete replied:
thanks,

It closes the browser window , but it closes even if the form is blank.

Pete Morales

Reply to this topic