Hello everyone:

How to correct this javascript UNDER Mozilla Firefox?Or is there some fungible ways?I need your help,thx!

=> var divColl = document.all.tags("DIV");

document.all is IE only not W3C standard.

W3C standard is

var divColl = document.getElementsByTagName("DIV");

A great place to make sure you're using W3C standards is:

http://www.w3schools.com

document.all is IE only not W3C standard.

W3C standard is

var divColl = document.getElementsByTagName("DIV");

A great place to make sure you're using W3C standards is:

http://www.w3schools.com

Hi hollystyles,thank you for you reply,and it's very helpful!