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

Q316 How can I close the window from within a frame?

You are here: irt.org | FAQ | JavaScript | Frame | Q316 [ previous next ]

The following does not work:

<FORM METHOD=POST>
<INPUT TYPE="button" VALUE="Close this Window" onClick="window.close();">
</FORM>

Whereas the following does:

<FORM METHOD=POST>
<INPUT TYPE="button" VALUE="Close this Window" onClick="top.close();">
</FORM>

Feedback on 'Q316 How can I close the window from within a frame?'

©2018 Martin Webb