but this is a deprecate reference and I woun't bet that next IE browser will recognize it. The new WW3 recomandation have been implemented in all new browsers, and are based on [b]getElementById, getElementByName and getElementsByTagName[/b] main refeneces . These are common also with NS6+ and Mozilla browsers.
It is a better choise to use a common IE5+, NS6+, Moz reference (about 95% of users) than a IE4, IE5+ reference (about 80% but IE4 users are very very few and they will be soon "extinct" )?
@fredmvJul 05.2004 — #[i]Originally posted by Charles [/i][B]
// To test for MSIE
[font=monospace]navigator.appName == 'Microsoft Internet Explorer'[/font]
// To test for the MSIE specific DOM, not necessarily backwards or forwards compatible with the above
[font=monospace]document.all[/font][/B][/QUOTE]Though note, Opera is by default spoofed as IE and will return [font=courier]true[/font] to both of those tests. For this reason I usually test for the existence of [font=courier]window.opera[/font] as well:typeof window.opera == 'undefined'