Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
07-07-2004, 02:00 PM #1
- Join Date
- Dec 2003
- Thanked 0 Times in 0 Posts
What do the Script, and Styles array mean in microsoft?
I was just skimming over again this one book, and as i was looking at the DOM picture, i noticed that in addition to the images, links, and anchor arrays, there's 2 other arrays by the names of Scripts, and Styles. How are they used?
Secondly, whats the difference between body, and all? I mean one is an array, hence its all, but how does it differe specifically from body? Is body only referring to the body tag of a document, while all can refer to all the tags of a file?LovesWar
07-07-2004, 09:31 PM #2
- Join Date
- Aug 2002
- Thanked 14 Times in 14 Posts
In short, just about every element in a document is represented in a zero-based collection so a tag such as the P tag can be referenced using
this will give a total of how many <P> tags are in the page.
The script and style arrays work in the same manner although the script one I have yet to see being used.
For the style array you would use
and then reference the rule of whichever style sheet