> >> if(!document.all) > > > > document.all is IE only > > I don't quite understand this condition. if all page elements there are no > page elements? is there a mozilla equivalent? >
(!document.all) is true if the User Agent doesn't implement the document.all thingy in its Document Object Model - eg, if they use Mozilla or some mozilla derrivative, or Netscape, or Opera. Code like "if (document.all)" or something similar is widely used to detect the evil index of the browser viewing the page, and to execute different code depending on whether the browser is completely given over to utter evil or not. -Emlyn
