Javascript Reference
Categories: PRE

javascript PRE width

@March 15, 2008, 1:22 a.m.
widthFirefox/Netscape/NN 6 IE 6(Win) Chrome/Safari/DOM 1  

Read/Write  

Provides the character column count for the monospaced content of the element. Only Netscape 6 reflows the content in response to changes of this property.

 
Example
 
document.getElementById("codeExample2").width = 40;
 
Value

Integer.

 
Default

-1 (Netscape 6); None (IE).


Powered by Linode.