This link is an excellent reference to DHTML in IE, about 80% also applies to the newer versions of Netscape/Mozilla:
http://msdn.microsoft.com/library/de...asp?frame=true
The div is nothing to do with JavaScript. It's part of the html specification and provides a non-styled element similar to the p tag but without the extra brak. It is a block element, i.e. it puts a line break after it and must be closed, i.e.
Code:
<div>Some text</div>
, you shouldn't miss the closing tag. It's corollary is the span which is also closed but is an inline element so does not add a line break.
--
Joe