|
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>
|
|
|
Copyright © 1996-2008 irt.org, All Rights Reserved.