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

Q1562 How can I resize a frameset?

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

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 'Q1562 How can I resize a frameset?'

©2018 Martin Webb