Area port Property
Area Object
Definition and Usage
The port property can set or return the port part of the href attribute value.
Syntax
areaObject.port=
port
Browser support





All major browsers support the port property.
Tips and Notes
Note: If the port part in the URL is not specified, or is 80 (the default), some browsers display 0 or nothing.
Example
Example
The following example returns the port in the "Venus" region:
Port of the "Venus" region:
Note:If the URL's port part is not specified, or is 80 (the default), some browsers display 0 or nothing.
The example above produces the following output:
Port of the "Venus" region: 80
Try it »
Area Object