faqts : Computers : Programming : Languages : JavaScript : Document

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

2 of 2 people (100%) answered Yes
Recently 2 of 2 people (100%) answered Yes

Entry

Does NN have a property similar to IE's document.all?

Feb 20th, 2003 07:14
Klaus Bolwin, Premkumar AC,


In NS6+ you can do the following:
all = document.getElementsByTagName("*");
then you can access the elements properties by e.g.:
value = all[i].style.color;
all[j].style.color = "red";
Of cours, you cann also use real tag names e.g. "div" insted of the
wildcard "*".