Name

HREF — NN all IE all HTML all

Synopsis

HREF=”URL"

Optional

The HREF attribute is a URL of a document whose server path is to be used as the base URL for all relative references in the document. This is typically the URL of the current document, but it can be set to another path if it makes sense to your document organization and directory structure.

Example

<BASE HREF="http://www.megacorp.com/products/index.html">

Value

This should be a full and absolute URL to a document.

Default

Current document pathname.

Object Model Reference

IE

[window.]document.all.tags(“base”)[0].href

Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.