Browser/User Agent Support
| IE | Mozilla | Netscape | Opera | Safari | Netscapte | 3.0+ | 1.0+ | 2.0+ | 7.0+ | 1.0+ | no |
|---|
Constructors
| Constructor | IE | Mozilla | Netscape | Opera | Safari | Netscapte |
|---|---|---|---|---|---|---|
Body of an HTML document. | 3.0+ | 1.0+ | 2.0+ | 7.0+ | 1.0+ | no |
Properties
| Property | IE | Mozilla | Netscape | Opera | Safari | Netscapte |
|---|---|---|---|---|---|---|
Color of active links. | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ | no |
URL of the background image of the document. | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ | no |
Background color of the document. | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ | no |
Background properties of the document. | 4.0+ | no | no | no | no | no |
Bottom margin of the document (in pixels). | 4.0+ | no | no | no | no | no |
Left margin of the document (in pixels). | 4.0+ | no | no | no | no | no |
Color of unvisited links. | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ | no |
If true, indicates that the content of the document word wraps automatically. | 4.0+ | no | no | no | no | no |
Right margin of the document (in pixels). | 4.0+ | no | no | no | no | no |
Whether or not to display scrollbars. | 4.0+ | no | no | no | no | no |
Color of the text in the document. | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ | no |
HTML + Time property. | 5.0+ | no | no | no | no | no |
Top margin of the document (in pixels). | 4.0+ | no | no | no | no | no |
Color of visited links. | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ | no |
Methods
| Method | IE | Mozilla | Netscape | Opera | Safari | Netscapte |
|---|---|---|---|---|---|---|
Creates a new controlRange object. | 5.0+ | no | no | no | no | no |
Creates a new textRange object. | 5.0+ | no | no | no | no | no |
Scrolls the document. | 5.0+ | no | no | no | no | no |
Pauses the document timeline. | 5.0+ | no | no | no | no | no |
Resumes the document timeline. | 5.0+ | no | no | no | no | no |
References
Availability
HTML DOM Level 1 | HTML DOM Level 2 | W3C
Constructor Detail
Property Detail
String aLink
Color of active links.
- Availability
HTML DOM Level 1 | HTML DOM Level 2 | W3C
String background
URL of the background image of the document.
- Availability
HTML DOM Level 1 | HTML DOM Level 2 | W3C
String bgColor
Background color of the document.
- Availability
HTML DOM Level 1 | HTML DOM Level 2 | W3C
String bgProperties
Background properties of the document.
String bottomMargin
Bottom margin of the document (in pixels).
String leftMargin
Left margin of the document (in pixels).
String link
Color of unvisited links.
- Availability
HTML DOM Level 1HTML DOM Level 1 | HTML DOM Level 2 | W3C
Boolean noWrap
If true, indicates that the content of the document word wraps automatically.
String rightMargin
Right margin of the document (in pixels).
String scroll
Whether or not to display scrollbars.
String text
Color of the text in the document.
- Availability
HTML DOM Level 1 | HTML DOM Level 2 | W3C
String timeStartRule
HTML + Time property.
String topMargin
Top margin of the document (in pixels).
String vLink
Color of visited links.
- Availability
HTML DOM Level 1 | HTML DOM Level 2 | W3C
Method Detail
createControlRange() : controlRange
Creates a new controlRange object.
createTextRange() : textRange
Creates a new textRange object.
doScroll([String action]) : void
Scrolls the document.
| String | action | Specifies how to do the scrolling (e.g. "left" or "right"). Default is to scroll to the top of the document. (optional) |
pause() : void
Pauses the document timeline.
resume() : void
Resumes the document timeline.
