The Base object represents an HTML <base> element.
You can access a <base> element by using getElementById():
You can create a <base> element by using the document.createElement() method:
Property | Description |
---|---|
href | Sets or returns the value of the href attribute in a base element |
target | Sets or returns the value of the target attribute in a base element |
The Base object also supports the standard properties and events.
HTML reference: HTML <base> tag