HTMLBodyElement

  • Revision slug: DOM/HTMLBodyElement
  • Revision title: HTMLBodyElement
  • Revision id: 75997
  • Created:
  • Creator: jswisher
  • Is current revision? No
  • Comment 234 words added

Revision Content

{{ DomRef() }}

HTML Body Element Interface

DOM body elements expose the HTMLBodyElement (or HTML 4 HTMLBodyElement) interface, which provides special properties (beyond the regular element object interface they also have available to them by inheritance) for manipulating body elements.

Properties

Name Type Description
aLink {{ deprecated_inline() }} in {{ HTMLVersion("4") }}, {{ obsolete_inline() }} in {{ HTMLVersionInline("5") }} DOMString Color of active hyperlinks.
background {{ deprecated_inline() }} in {{ HTMLVersion("4") }}, {{ obsolete_inline() }} in {{ HTMLVersionInline("5") }} DOMString URI for a background image resource.
bgColor {{ deprecated_inline() }} in {{ HTMLVersion("4") }}, {{ obsolete_inline() }} in {{ HTMLVersionInline("5") }} DOMString Background color for the document.
link {{ deprecated_inline() }} in {{ HTMLVersion("4") }}, {{ obsolete_inline() }} in {{ HTMLVersionInline("5") }} DOMString Color of unvisited links.
text {{ deprecated_inline() }} in {{ HTMLVersion("4") }}, {{ obsolete_inline() }} in {{ HTMLVersionInline("5") }} DOMString Foreground color of text.
vLink {{ deprecated_inline() }} in {{ HTMLVersion("4") }}, {{ obsolete_inline() }} in {{ HTMLVersionInline("5") }} DOMString Color of visited links.

 

Revision Source

<p>{{ DomRef() }}</p>
<h2>HTML Body Element Interface</h2>
<p>DOM body elements expose the <a class=" external" href="http://www.w3.org/TR/html5/text-level-semantics.html#htmlanchorelement" rel="external nofollow" target="_blank" title="http://www.w3.org/TR/html5/text-level-semantics.html#htmlanchorelement">HTMLBodyElement</a> (or <span style="border: 1px solid rgb(129, 129, 250); background-color: rgb(174, 218, 229); font-size: x-small; white-space: nowrap; padding: 2px;"><a href="../../../../en/HTML" rel="custom nofollow">HTML 4</a></span> <a class=" external" href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-48250443" rel="external nofollow" target="_blank" title="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-48250443"><code>HTMLBodyElement</code></a>) interface, which provides special properties (beyond the regular <a href="../../../../en/DOM/element" rel="internal">element</a> object interface they also have available to them by inheritance) for manipulating body elements.</p>
<h2>Properties</h2>
<table class="standard-table"> <thead> <tr> <th scope="col">Name</th> <th scope="col">Type</th> <th scope="col">Description</th> </tr> </thead> <tbody> <tr> <td><code>aLink</code> {{ deprecated_inline() }} in {{ HTMLVersion("4") }}, {{ obsolete_inline() }} in {{ HTMLVersionInline("5") }}</td> <td><a href="/En/DOM/DOMString" title="En/DOM/DOMString"><code>DOMString</code></a></td> <td>Color of active hyperlinks.</td> </tr> <tr> <td><code>background</code> {{ deprecated_inline() }} in {{ HTMLVersion("4") }}, {{ obsolete_inline() }} in {{ HTMLVersionInline("5") }}</td> <td><a href="/En/DOM/DOMString" title="En/DOM/DOMString"><code>DOMString</code></a></td> <td>URI for a background image resource.</td> </tr> <tr> <td><code>bgColor</code> {{ deprecated_inline() }} in {{ HTMLVersion("4") }}, {{ obsolete_inline() }} in {{ HTMLVersionInline("5") }}</td> <td><a href="/En/DOM/DOMString" title="En/DOM/DOMString"><code>DOMString</code></a></td> <td>Background color for the document.</td> </tr> <tr> <td><code>link</code> {{ deprecated_inline() }} in {{ HTMLVersion("4") }}, {{ obsolete_inline() }} in {{ HTMLVersionInline("5") }}</td> <td><a href="/En/DOM/DOMString" title="En/DOM/DOMString"><code>DOMString</code></a></td> <td>Color of unvisited links.</td> </tr> <tr> <td><code>text</code> {{ deprecated_inline() }} in {{ HTMLVersion("4") }}, {{ obsolete_inline() }} in {{ HTMLVersionInline("5") }}</td> <td><a href="/En/DOM/DOMString" title="En/DOM/DOMString"><code>DOMString</code></a></td> <td>Foreground color of text.</td> </tr> <tr> <td><code>vLink</code> {{ deprecated_inline() }} in {{ HTMLVersion("4") }}, {{ obsolete_inline() }} in {{ HTMLVersionInline("5") }}</td> <td><a href="/En/DOM/DOMString" title="En/DOM/DOMString"><code>DOMString</code></a></td> <td>Color of visited links.</td> </tr> </tbody>
</table>
<p> </p>
Revert to this revision