| pre | NN 6 IE 4 DOM 1 |
|
The pre object reflects the pre element for preformatted text. |
|
| HTML Equivalent | |
<pre> |
|
| Object Model Reference | |
[window.]document.getElementById("elementID")
|
|
| Object-Specific Properties | |
width |
|
| Object-Specific Methods | |
None. |
|
| Object-Specific Event Handler Properties | |
None. |
|
| width | NN 6 IE 6(Win) 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). |
|