Given this example page;
<HTML>
<HEAD>
<TITLE>test</TITLE>
<BODY>
<DIV ID="test_div">
<P>test paragraph</P>
</DIV>
</BODY>
</HTML>
What is the construction of the DOM element name that is the DIV with
the ID "test_div"?
E.g.
I could go;
var
d;
d = document.getElementById( "test_div" );
But if I didn't have getElementById(), what name would I use to directly
reference the div?
E.g. for a form, I might write;
document.forms["test_form"];
or I might go;
document.images["test_image"].src = "http://www.lala.com/wibble.png";
But what would I use to set say a style attribute on the div?
Note that this is not for IE, so I can't use document.all.