<DIV style="display: none">

Results 1 to 2 of 2

Thread: <DIV style="display: none">

  1. #1
    lagerBoy Guest

    Default <DIV style="display: none">

    Can anyone please explaing to me how to go about toggling the visiblility of a DIV in Netscape.<BR><BR>I can do it in IE by using:-<BR>document.all[elementID].style.display = "none" or "block"<BR><BR>How do you do it with the other 12% of browsers.

  2. #2
    ashok ayengar Guest

    Default RE: <DIV style=

    you can set the .visibility property to show or hide.<BR>in netscape the value for visibility is "show" or "hide" but in IE it is "visible" and "hidden".<BR><BR>so for Netscape you have to code as<BR>document.layers.elemendID.visibility="show" or "hide"<BR><BR>and for IE<BR>document.all.elementID.style.visibility="vis ible" or "hidden"<BR><BR><BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts