Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org
#

Q84 Is there a way to close a child window after I click the submit button?

You are here: irt.org | FAQ | JavaScript | Window | Q84 [ previous next ]

One way to achieve this is to create a timer using setTimeout which closes the child window after an arbitary delay:

<form onSubmit="setTimeout('window.close()',5000)">
<input type="submit" value="Close Window">
</form>

Feedback on 'Q84 Is there a way to close a child window after I click the submit button?'

©2018 Martin Webb