Please note, this is a STATIC archive of website developer.mozilla.org from November 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Alternate Stylesheets Example

The following paragraph will change appearance when you set the style using the View->Page Style submenu (on Windows 7 and Vista, press the Alt key to toggle the menu bar on if it's not visible).

Watch this style change!

Information about the style sheets

The preferred style sheet is: ?

The currently selected style sheet is: ?

The last selected style sheet is: ?

The available style sheets:

Click one of these to change style sheets.

Check the box below to use the enableStyleSheetsForSet() method to change the current style sheet instead of setting the selectedStyleSheetSet attribute directly. Notice the difference in behavior of the lastStyleSheetSet attribute between the two.