Easy Tutorial
❮ Event Onpageshow Jsref Issafeinteger Number ❯

Area port Attribute


Definition and Usage

The port attribute sets or returns the port part of the href attribute value.

Syntax


Browser Support

All major browsers support the port attribute.


Tips and Notes

Note: If the port part in the URL is not specified, or is 80 (the default value), some browsers may display 0 or nothing.


Example

The following example returns the port for the "Venus" area:

The output for the above example is:

Port for "Venus" area: 80

❮ Event Onpageshow Jsref Issafeinteger Number ❯