MORE : How to know what classes are inside a class ?

J

JS Beginner

Firstly, thank you very much (Randy?), I get this and having a good start.
But now, I have some new problem on accessing class. =)

<script>
function Start()
{ document.write ( document.all.X.style.length ) }
</script>

<body>
<div id="X" name="X" style="visibility:1;z-index:1;position:relative">
<table name=table border=1 cellpadding=1 cellspacing=0>
<tr><td><script>Start()</script></td></tr></table>

My question is why I can't get the elems(length) from X.style ?
but I can get document.all.X.style.zIndex directly ?
Is that related to another topic (out of the scope about form) or what ?

TIA
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,077
Messages
2,570,566
Members
47,202
Latest member
misc.

Latest Threads

Top