X
HOME HTML CSS JAVASCRIPT SQL PHP JQUERY XML ASP.NET MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

HTML DOM Base Object


Base Object

The Base object represents an HTML <base> element.

Access a Base Object

You can access a <base> element by using getElementById():

var x = document.getElementById("myBase"); Try it

Create a Base Object

You can create a <base> element by using the document.createElement() method:

var x = document.createElement("BASE"); Try it

Base Object Properties

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

Standard Properties and Events

The Base object also supports the standard properties and events.


Related Pages

HTML reference: HTML <base> tag



Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates FREE Website Templates Free HTML Templates

SHARE THIS PAGE

facebook