Forum Moderators: open

Message Too Old, No Replies

object detection soley for IE4

         

webaster

4:50 pm on Mar 29, 2005 (gmt 0)

10+ Year Member



When using this object detection in javascript

if (document.all &&!document.getElementbyId) {

your javascript here
}

Does this mean only IE4x browsers are targeted

because IE4.x support document.all and NOT
document.getElementbyId

webaster

4:51 pm on Mar 29, 2005 (gmt 0)

10+ Year Member



if (document.all &&!document.getElementbyId) {

// whitespace added between && AND!document.getElementbyId