Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

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

irt.org | Knowledge Base | JavaScript | Window | Q84 [ previous next ]

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

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?'


Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 30th March 2008. Maintained by: Martin Webb and Michel Plungjan
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.