Anchor.hostname (Property)

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


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

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

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


See also:Anchor object, Anchor.hash, Anchor.href, Anchor.pathname, Anchor.port, Anchor.protocol,,, URL, Url.hostname