h1, h2, h3, h4, h5, h6 | NN 6 IE 4 DOM 1 |
These objects reflect the HTML header elements of the same names. See the description of the elements in Chapter 8 for examples of how various browsers render each of the header sizes. |
|
HTML Equivalent | |
<h1> <h2> <h3> <h4> <h5> <h6> |
|
Object Model Reference | |
[window.]document.getElementById("elementID")
|
|
Object-Specific Properties | |
align |
|
Object-Specific Methods | |
None. |
|
Object-Specific Event Handler Properties | |
None. |
align | NN 6 IE 4 DOM 1 |
Read/Write | |
Defines the horizontal alignment of the element within its surrounding container. |
|
Example | |
document.getElementById("myHeader").align = "center"; |
|
Value | |
Any of the three horizontal alignment constants: center | left | right. |
|
Default | |
left |