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

Q944 In Netscape CSS can be switched off, is it possible to detect this?

irt.org | Knowledge Base | DHTML | Q944 [ previous next ]

Q944 In Netscape CSS can be switched off, is it possible to detect this?

Yes its possible. Just check for a layer object before attempting to manipulate it, for example:

<script language="JavaScript"><!--
function show(object) {
    if (document.layers && document.layers[object] != null)
        document.layers[object].visibility = 'visible';
    else if (document.all)
        document.all[object].style.visibility = 'visible';
}

function hide(object) {
    if (document.layers && document.layers[object] != null)
        document.layers[object].visibility = 'hidden';
    else if (document.all)
        document.all[object].style.visibility = 'hidden';
}
//--></script>

Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 30th March 2008. Maintained by: Martin Webb
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.