You are here: irt.org | FAQ | JavaScript | Redirect | Q978 [ previous next ]
Attempt to create a layer - then check for its existence - only possible in Netscape Navigator 4+:
<html>
<head>
<script language="JavaScript"><!--
function test(object) {
if (document.layers)
if (!document.layers['myId'])
location.href = 'turnCSSon.htm';
}
//--></script>
</head>
<body onLoad="test()">
<div id="myId" style="position: absolute; visibility: hidden;"></div>
</body>
</html>