HTML DOM Base object
Base-object
Het Base-object vertegenwoordigt het HTML <base>-element.
Toegang tot het Base-object
U kunt getElementById() gebruiken om het <base>-element te bereiken:
var x = document.getElementById("myBase");
Maak een Base-object
U kunt de methode document.createElement() gebruiken om het <base>-element te maken:
var x = document.createElement("BASE");
Base object properties
Properties | Description |
---|---|
href | Sets or returns the value of the href attribute of the base element. |
target | Sets or returns the value of the target attribute of the base element. |
Standard properties and events
The Base object supports both standardsPropertiesandEvents.
Related pages
HTML reference manual:HTML <base> tag