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 . [1] It was an alternative to the Cascading Style Sheets (CSS) technology. [1] Although Netscape submitted to the World Wide Web Consortium (W3C), the technology was never accepted and accepted. Only Netscape Communicator 4 supported JSSS, with the rival Internet Explorer web browserchoosing not to implement the technology. Soon after Netscape Communicator’s release in 1997, Netscape stopped promoting JSSS, instead focusing on the standard CSS rival, which was also supported by Internet Explorer and had a 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. The proposed standard was not finished.

Using JavaScript code as a stylesheet, JSSS styles. For example, the CSS:

 h1 { font-size : 20 pt ; }

is equivalent to the JSSS:

 document . tags . H1 . fontSize = "20pt" ;

JSSS element names are case sensitive.

JSSS lacks the various CSS selector features, supporting only simple tag name, class and id selectors. On the other hand, since it is written using a complete programming language , stylesheets can include highly complex dynamic calculations and conditional processing. (In practice, HOWEVER, this can be Achieved as Dynamic CSS by using JavaScript to modify the stylesheets applied to the document at runtime.) Because of this JSSS Was Often used in the establishment of DHTML .


The following example shows part of the source code of an HTML-document:

< style type = "text / javascript" >
tags . H1 . color = "red" ;
tags . p . fontSize = "20pt" ;
with ( tags . H3 ) {
 color = "green" ;
With ( tags . H2 ) {
 color = "red" ;
 fontSize = "16pt" ;
 marginTop = "4cm" ;
</ style >

Similar to Cascading Style Sheets , JSSS can be used in a <style>tag. This example shows two different methods to select tags.

Browser support

Javascript Style Sheets were only supported by Netscape 4.x (4.0-4.8) but no later versions. No other web browser has ever integrated JSSS.


  1. ^ Jump up to:b Håkon Wium Lie ; Bert Bos . “Chapter 20 – The CSS saga” . World Wide Web Consortium . Retrieved 23 June 2010 .