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

Q396 How can I have image buttons that remove and reload the frameset?

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

Q396 How can I have image buttons that remove and reload the frameset?

To remove the frame, in mytop.htm:

<a href="mypage.htm" target="_top"><img src="close.gif" width="16" height="16"></a>

To reload the frame, in mypage.htm:

<script language="JavaScript"><!--
if (parent != self) {
document.write('<a href="myframe.htm" target="_top"><img src="open.gif" width="16" height="16"><\/a>');
}
//--></script>

and then in myframe.html:

<frameset rows="16,*">
<frame src="mytop.htm">
<frame src="mypage.htm">
</frameset>

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.