<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://70.231.62.181/index.php?action=history&amp;feed=atom&amp;title=JavaScript_Style_Sheets</id>
	<title>JavaScript Style Sheets - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://70.231.62.181/index.php?action=history&amp;feed=atom&amp;title=JavaScript_Style_Sheets"/>
	<link rel="alternate" type="text/html" href="http://70.231.62.181/index.php?title=JavaScript_Style_Sheets&amp;action=history"/>
	<updated>2026-04-14T07:27:39Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>http://70.231.62.181/index.php?title=JavaScript_Style_Sheets&amp;diff=4603889&amp;oldid=prev</id>
		<title>imported&gt;Lili1228: …or not after all, this seems to be newer. replace the date* link with date</title>
		<link rel="alternate" type="text/html" href="http://70.231.62.181/index.php?title=JavaScript_Style_Sheets&amp;diff=4603889&amp;oldid=prev"/>
		<updated>2025-11-05T10:16:52Z</updated>

		<summary type="html">&lt;p&gt;…or not after all, this seems to be newer. replace the date* link with date&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Short description|Stylesheet language proposed by Netscape}}&lt;br /&gt;
{{More citations needed|date=November 2023}}&lt;br /&gt;
{{infobox file format&lt;br /&gt;
| name = JavaScript Style Sheets&lt;br /&gt;
| extension =&lt;br /&gt;
| screenshot = &lt;br /&gt;
| mime = text/javascript&lt;br /&gt;
| owner = [[Netscape|Netscape Communications Corporation]]&lt;br /&gt;
| genre = [[Style sheet language]]&lt;br /&gt;
| standard = [http://www.w3.org/Submission/1996/1/WD-jsss-960822 Netscape&amp;#039;s JavaScript-Based Style Sheets submission to the W3C]&lt;br /&gt;
}}&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;JavaScript Style Sheets&amp;#039;&amp;#039;&amp;#039; (&amp;#039;&amp;#039;&amp;#039;JSSS&amp;#039;&amp;#039;&amp;#039;) was a [[stylesheet language]] technology proposed by [[Netscape|Netscape Communications]] in 1996 to provide facilities for defining the presentation of [[webpages]].&amp;lt;ref name=&amp;quot;chapter20&amp;quot;&amp;gt;{{cite web|title=Chapter 20 - The CSS saga|url=http://www.w3.org/Style/LieBos2e/history/|publisher=[[World Wide Web Consortium]]|access-date=23 June 2010|author=Håkon Wium Lie|author-link=Håkon Wium Lie|author2=Bert Bos|author2-link=Bert Bos}}&amp;lt;/ref&amp;gt; It was an alternative to the [[Cascading Style Sheets]] (CSS) technology.&amp;lt;ref name=&amp;quot;chapter20&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Although Netscape submitted it to the [[World Wide Web Consortium]] (W3C), the technology was never accepted as a formal standard and it never gained acceptance in the [[web browser]] market. Only [[Netscape Communicator]] 4 implemented JSSS, with rival [[Internet Explorer]] choosing not to implement the technology. Soon after Netscape Communicator&amp;#039;s release in 1997, Netscape stopped promoting JSSS, instead focusing on the rival CSS standard, which was also supported by Internet Explorer and had a much wider industry acceptance.&lt;br /&gt;
&lt;br /&gt;
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 [[Web development|web developers]] generally unaware of its previous existence. The proposal did not become a W3C standard.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
Using [[JavaScript]] code as a stylesheet, JSSS styles individual element by modifying properties of a &amp;lt;code&amp;gt;document.tags&amp;lt;/code&amp;gt; object. For example, the CSS:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;css&amp;quot;&amp;gt;&lt;br /&gt;
 h1 { font-size: 20pt; }&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
is equivalent to the JSSS:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
 document.tags.H1.fontSize = &amp;quot;20pt&amp;quot;;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
JSSS element names are case sensitive.&lt;br /&gt;
&lt;br /&gt;
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 using [[JavaScript]] to modify the stylesheets applicable to the document at runtime.)&lt;br /&gt;
Because of this JSSS was often used in the creation of [[dynamic web page]]s.&lt;br /&gt;
&lt;br /&gt;
===Example===&lt;br /&gt;
The following example shows part of the source code of an HTML document:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;html&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;style type=&amp;quot;text/javascript&amp;quot;&amp;gt;&lt;br /&gt;
tags.H1.color = &amp;quot;red&amp;quot;;&lt;br /&gt;
tags.p.fontSize = &amp;quot;20pt&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
with (tags.H3) {&lt;br /&gt;
    color = &amp;quot;green&amp;quot;;&lt;br /&gt;
}&lt;br /&gt;
with (tags.H2) {&lt;br /&gt;
    color = &amp;quot;red&amp;quot;;&lt;br /&gt;
    fontSize = &amp;quot;16pt&amp;quot;;&lt;br /&gt;
    marginTop = &amp;quot;4cm&amp;quot;;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/style&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Similar to [[Cascading Style Sheets]], JSSS could be used in a {{tag|style|o}} tag. This example shows two different methods to select tags.&lt;br /&gt;
&lt;br /&gt;
==Browser support==&lt;br /&gt;
Javascript Style Sheets were only supported by Netscape 4.x (4.0–4.8) but no later versions. No other [[web browser]] has ever implemented JSSS.&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
{{Reflist}}&lt;br /&gt;
&lt;br /&gt;
==External links==&lt;br /&gt;
*[http://www.w3.org/Submission/1996/1/WD-jsss-960822 Netscape&amp;#039;s JavaScript-Based Style Sheets submission to the W3C]&lt;br /&gt;
*[http://sunsite.uakom.sk/sunworldonline/swol-04-1997/swol-04-webmaster.html The dynamic, powerful abilities of JavaScript Style Sheets]&lt;br /&gt;
*[https://web.archive.org/web/20030521105926/http://www.damsbo.com/webdev/jsss/jss25.htm JavaScript Style Sheet Reference]&lt;br /&gt;
&lt;br /&gt;
{{ECMAScript}}&lt;br /&gt;
{{Netscape}}&lt;br /&gt;
{{Stylesheet languages}}&lt;br /&gt;
{{W3C standards}}&lt;br /&gt;
&lt;br /&gt;
[[Category:JavaScript|Style Sheets]]&lt;br /&gt;
[[Category:Stylesheet languages]]&lt;br /&gt;
[[Category:Netscape]]&lt;/div&gt;</summary>
		<author><name>imported&gt;Lili1228</name></author>
	</entry>
</feed>