WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

HTML DOM Area Object


Area Object

The Area object speaks to a HTML <area> element.

Access an Area Object

You can get to a <area> component by utilizing getElementById():

var x = document.getElementById("myArea");

Create an Area Object

You can make a <area> component by utilizing the document.createElement() method:

var x = document.createElement("AREA");

Area Object Properties

Property Description
alt Sets or returns the estimation of the alt quality of an area
coords Sets or returns the estimation of the coords quality of an area
hash Sets or returns the stay some portion of the href quality value
host Sets or returns the hostname and port piece of the href quality value
hostname Sets or returns the hostname part of the href trait value
href Sets or returns the estimation of the href property of an area
noHref Not bolstered in HTML5.
Sets or returns the estimation of the nohref quality of an area
origin Returns the convention, hostname and port piece of the href quality value
password Sets or returns the secret key piece of the href characteristic value
pathname Sets or returns the pathname part of the href property value
port Sets or returns the port piece of the href characteristic value
protocol Sets or returns the convention part of the href quality value
search Sets or returns the querystring part of the href trait value
shape Sets or returns the estimation of the shape property of an area
target Sets or returns the estimation of the objective property of an area
username Sets or returns the username part of the href trait value