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

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

irt.org | Knowledge Base | JavaScript | Redirect | Q978 [ previous next ]

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

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>

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.