Easy Tutorial
❮ Event Onafterprint Prop Range Name ❯

Area host Attribute


Definition and Usage

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

Syntax


Browser Support

All major browsers support the host attribute.


Tips and Notes

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


Example

The following example returns the hostname and port of the "Venus" area:

The output of the above example:

❮ Event Onafterprint Prop Range Name ❯