[thelist] style.display in NN6

MRC webmaster at equilon-mrc.com
Wed Dec 19 17:58:05 CST 2001


Sam-I-Am,

> I want to show/hide an element within the document flow. My
> understanding is that I should be able to dynamically set the elements
> style.display property to accomplish this in IE5/NN6. And it __kind__ of
> works in NN6, but you'll see it does funky stuff when you go to
> expand/show the element again.
>
> http://sam-i-am.com/testsuite/dhtml/setting_style_display.html

    The solution is Netscape 6.2x. There is clearly a display bug with 6.1
that has since been resolved in later versions.
    Also, I strongly recommend against using "display" as a variable name.
As a browser object keyword, it could potentially cause parsing confusion.
But even if it doesn't, it may well cause confusion to another code editor.

James Aylard





More information about the thelist mailing list