Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML DOM Base object

HTML DOM object


Base Object

The Base object represents the HTML base element.

The base element specifies the default address or target address for all links on the page.

In an HTML document, A Base object is created each time the tag appears.


Base object properties

W3C: W3C standard.

property Description W3C
href Sets or returns the base URL for all links on the page. Yes
target Sets or returns the default target frame for all links on the page. Yes

Standard properties and events

The Base object also supports standard property and Events.