Opentopia Directory Encyclopedia Tools

JavaScript Style Sheets

Encyclopedia : J : JA : JAV : JavaScript Style Sheets


JavaScript Style Sheets (JSSS) was a stylesheet language technology proposed by Netscape Communications Corporation in 1996 to provide facilities for defining the presentation of webpages. It was an alternative to the Cascading Style Sheets (CSS) technology. Although Netscape submitted it to the World Wide Web Consortium (W3C), the technology was never accepted as a formal standard and it never gained much acceptance in the market. Only Netscape Communicator 4 supported JSSS, with the rival Internet Explorer web browser choosing not to implement the technology. Soon after Netscape Communicator's release in 1997, Netscape stopped promoting JSSS, instead focusing on the rival CSS standard, which was also supported by Internet Explorer and had much wider industry acceptance. The follow-up to Netscape Communicator, Netscape 6 (released in 2000), dropped support for JSSS. It now remains little more than a historical footnote, with many Web developers not even being aware of its existence.

JavaScript code is used as a stylesheet, JSSS styles individual element by modifying properties of the document.tags object. For example, the CSS:

h1 
is equivalent to JSSS:
document.tags.H1.fontSize = "20pt";
Note the case significance in element names.

JSSS is in some ways more powerful and in some ways less powerful than CSS. It lacks the various CSS selector features, supporting only a simple tag name selector. On the other hand, since it uses a full programming language to write stylesheets, stylesheets can include highly complex dynamic calculations and conditional processing. (In practice, in CSS, these are achieved by using JavaScript to modify the CSS applicable to the document at runtime.)

Being written in JavaScript, JSSS stylesheets may seem less friendly than CSS stylesheets to users without programming background.

See also

External links

 


From Wikipedia, the Free Encyclopedia. Original article here. Support Wikipedia by contributing or donating.
All text is available under the terms of the GNU Free Documentation License See Wikipedia Copyrights for details.

Search Titles
0123456789
ABCDEFGHIJ
KLMNOPQRST
UVWXYZ?

E-mail this article to:

Personal Message: