Anchor.host (Property)

On MSIE the link.host property is also available as the anchor.host property.

Availability:

JavaScript - 1.2
JScript - 3.0
Internet Explorer - 4.0
Netscape - 4.0
Property/method value type:String primitive
JavaScript syntax:-myAnchor.host
-myAnchor.host = newHostPort
HTML syntax:<A HREF="...">

This yields the host and port value of the HREF value in an <A> tag.

You can redefine the host to request the URL by assigning a new value to this property.

Warnings:

See also:Anchor object, Anchor(), Anchor.hash, Anchor.href, Anchor.pathname, Anchor.port, Anchor.protocol, Anchor.search, Anchor.target, URL, Url.host