YouTip LogoYouTip

Prop Area Port

# HTML DOM Area port Property [![Image 8: Area Object Reference](#) 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 ![Image 9: Internet Explorer](#)![Image 10: Firefox](#)![Image 11: Opera](#)![Image 12: Google Chrome](#)![Image 13: Safari](#) 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: Venus

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](#)
← Prop Area ProtocolEvent Relatedtarget β†’