Easy Tutorial
❮ Prop Audio Readystate Jsref If ❯

Base href Attribute


Definition and Usage

The href attribute sets or returns the base URL for all links on the page.

Syntax


Browser Support

All major browsers support the href attribute.


Example

The following example returns the base URL of the page:

Output of the above example:

❮ Prop Audio Readystate Jsref If ❯