Javascript Reference
Categories: styleSheet

javascript styleSheet title

@March 15, 2008, 1:22 a.m.
titleFirefox/Netscape/NN 6 IE 4 Chrome/Safari/DOM 2  

Read/Write  

Exposes the title attribute of the style or link element that owns the current styleSheet object. Since the attribute does not affect user interface elements (the elements are unrendered, and thus don't show tool tips), it is available to convey other string information to the styleSheet object under script control.

 
Example
 
if (document.styleSheets[2].title == "corpStyleWindows") {
    // process for the designated style
}
 
Value

String value.

 
Default

Empty string.


Powered by Linode.