Click to See Complete Forum and Search --> : what support all IE browsers?


pelegk1
07-05-2004, 05:04 AM
document.all
or document.getElementById
?

Kor
07-05-2004, 05:16 AM
document.all

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 getElementById, getElementByName and getElementsByTagName 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" ):D

Charles
07-05-2004, 05:27 AM
// To test for MSIE
navigator.appName == 'Microsoft Internet Explorer'

// To test for the MSIE specific DOM, not necessarily backwards or forwards compatible with the above
document.all

// To test for the W3C DOM
document.getElementById

pelegk1
07-05-2004, 07:14 AM
second Charles ididnt understand how do i execlly check which 1 works and which 1 dosent?

Charles
07-05-2004, 07:25 AM
Each one works but each one does something different. Use the one that does what you want.

And Israel's not so nice a place to live for Mordechai Vanunu (http://www.vanunu.freeserve.co.uk/)

fredmv
07-05-2004, 10:38 AM
Originally posted by Charles
// To test for MSIE
navigator.appName == 'Microsoft Internet Explorer'

// To test for the MSIE specific DOM, not necessarily backwards or forwards compatible with the above
document.allThough note, Opera is by default spoofed as IE and will return true to both of those tests. For this reason I usually test for the existence of window.opera as well:typeof window.opera == 'undefined'

pelegk1
07-06-2004, 02:12 AM
Mordechai Vanunu before.
he did big demages to our country security
if he was in the usa he was still stiing in jail and didnt start to see the end of the timehe got yes