Javascript Reference
Categories: FONT

javascript FONT size

@Aug. 17, 2009, 9:49 a.m.
size Firefox/Netscape/NN 6 IE 4 Chrome/Safari/DOM 1  

 

Read/Write  

The size of the font in the 1-7 browser relative scale. For more accurate font size settings, see the style.fontSize property.

 
Example
 
document.getElementById("fontSpec2").size = "+1";
 
Value

Either an integer (as a quoted string) or a quoted relative value consisting of a + or - symbol and an integer value.

 
Default

3


Powered by Linode.