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

Q978 Is there a way to redirect users to another page if they have disabled CSS?

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>

©2018 Martin Webb