You are here: irt.org | FAQ | DHTML | Q944 [ previous next ]
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>