HTML DOM Body-Objekt
- Vorherige Seite <blockquote>
- Nächste Seite <br>
Body object
The Body object represents the HTML <body> element.
Access Body object
You can access the <body> element using getElementsByTagName():
var x = document.getElementsByTagName("BODY")[0];
Tip:You can also access the <body> element using the document.body property.
Create Body object
You can create a <body> element using the document.createElement() method:
var x = document.createElement("BODY");
Body object attributes
Eigenschaften | Description |
---|---|
aLink |
Not supported in HTML5.See also CSS :active-Selektor. Set or return the color of active links in the document. |
background |
Not supported in HTML5.Please use style.backgroundImage. Set or return the background image of the document. |
bgColor |
Not supported in HTML5.Please use style.backgroundColor. Set or return the background color of the document. |
link |
Not supported in HTML5.See also CSS :link-Selektor. Set or return the color of unvisited links in the document. |
text |
Not supported in HTML5.Please use style.color. Set or return the color of text in the document. |
vLink |
Not supported in HTML5.See also CSS :visited-Selektor. Set or return the color of visited links in the document. |
Standard attributes and events
Das Body-Objekt unterstützt sowohl Standards als auchEigenschaftenundEreignisse.
Verwandte Seiten
HTML-Referenzhandbuch:HTML <body>-Tag
- Vorherige Seite <blockquote>
- Nächste Seite <br>