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>