You are here: irt.org | FAQ | JavaScript | Window | Q1332 [ previous next ]
Assuming the child has been opened like this:
<script language="JavaScript"><!-- winId = window.open(.....); //--></script>
Then use:
<form> <input type="button" onClick="if (!winId.closed) winId.close()" value="Close Popup"> </form>