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>