JavaScript Accessible Style Sheets

Netscape Navigator does support the CSS specification, and using the CSS approach is a perfectly good way to build style information into your documents. But, as you saw earlier in the chapter, Navigator also includes style properties in the browser object model, which means you can use JavaScript to access and set style characteristics. Netscape calls this approach JavaScript Accessible Style Sheets; it was the first major feature of Netscape's version of Dynamic HTML in Navigator 4.

The advantage of JavaScript Accessible Style Sheets is that by using the browser object model, you can dynamically change style information by using scripts triggered by certain events that come about from user actions. This section ...

Get Platinum Edition Using XHTML™, XML, and Java™ 2 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.