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

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

irt.org | Knowledge Base | JavaScript | Frame | Q316 [ previous next ]

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

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


Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


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