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

Q1634 If I have frames is there a way to delete one of them from a button in another frame?

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

Q1634 If I have frames is there a way to delete one of them from a button in another frame?

The following works in Internet Explorer, assuming that the other frame is named remote:

<html>
<head>
 
<script language="JavaScript1.2"><!--
var tabShow=0;
 
function hideremote() {
  if (tabShow == 1) {
    if (document.all) {
      parent.remote.document.body.cols="144,*";
      tabShow = 0;
      return;
    }
  }

  if (tabShow == 0) {
    if (document.all) {
      parent.remote.document.body.cols="0%,100%";
      tabShow = 1;
    }
  }
}
//--></script>
</head>
 
<body>
<a href="javascript:hideremote()">Toggle Remote</a>
</body>
</html>

Feedback on 'Q1634 If I have frames is there a way to delete one of them from a button in another frame?'


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.