=> 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:
Hi hollystyles,thank you for you reply,and it's very helpful!