Node.baseURI

  • Revision slug: DOM/Node.baseURI
  • Revision title: Node.baseURI
  • Revision id: 10020
  • Created:
  • Creator: trevorh
  • Is current revision? No
  • Comment Basic content; page created, 55 words added

Revision Content

{{ DomRef() }}

Summary

The absolute base URI of a node or null if unable to obtain an absolute URI.

Syntax

var baseURI = element.baseURI;
  • baseURI is a {{ domxref("DOMString") }} representing the baseURI of the current element.

Specification

{{ spec("http://www.w3.org/TR/DOM-Level-3-Core/core.html#Node3-baseURI","DOM Level 3 Core: baseURI","REC") }}

Revision Source

<p>{{ DomRef() }}</p>
<h3 name="Summary">Summary</h3>
<p>The absolute base URI of a node or <code>null</code> if unable to obtain an absolute URI.</p>
<h3 name="Syntax">Syntax</h3>
<pre class="eval">var <em>baseURI</em> = <em>element</em>.baseURI;
</pre>
<ul> <li><code>baseURI</code> is a {{ domxref("DOMString") }} representing the <code>baseURI</code> of the current element.</li>
</ul>
<h3 name="Specification">Specification</h3>
<p>{{ spec("http://www.w3.org/TR/DOM-Level-3-Core/core.html#Node3-baseURI","DOM Level 3 Core: baseURI","REC") }}</p>
Revert to this revision