[thelist] Browser Detect with JavaScript

Warden, Matt mwarden at odyssey-design.com
Mon Dec 4 05:51:08 CST 2000


> This check can be done far simpler. If you want a message to appear in
> non-CSS browsers (including IE3), do:
>
> <P STYLE="display: none">Your web browser is not the latest and
> greatest.</P>
>
> The CSS browsers will honour the display: none and remove the P from the
> document, while non-CSS browsers will show it. IE3 doesn't support display,
> so it also shows the message.

I am not aware of any Netscape versions (possibly v6??) that supports display:
none;. You may wish to use the visibility property.


--
mattwarden
mattwarden.com





More information about the thelist mailing list