# HTML DOM Area port Property
[ Area Object](#)
* * *
## Definition and Usage
The port property sets or returns the port part of the href attribute value.
## Syntax
areaObject.port=_port_
* * *
## Browser Support

The port property is supported by all major browsers.
* * *
## Tips and Notes
**Note:** If the port part is not specified in the URL, or is 80 (the default), some browsers will display 0 or nothing.
* * *
## Example
## Example
The following example returns the port of the "Venus" area:
port of "Venus" area:
document.write(document.getElementById('venus').port);
Note: If the port part is not specified in the URL, or is 80 (the default), some browsers will display 0 or nothing.
The output of the above example:
port of "Venus" area: 80
[Try it yourself Β»](#)
* * Area Object](#)