0

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");

2
Contributors
2
Replies
3
Views
11 Years
Discussion Span
Last Post by nihao
0

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!

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.