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.
Be careful not to assign a port number with the host name, otherwise your new URL may acquire two port numbers which makes it invalid.
Since the hostname property of an Anchor object is not portable in all older browser versions, you should use the pathname property of the corresponding Url object to be able to work across MSIE and Netscape.
As features become deprecated, it may become necessary to support both techniques in browser specific code according to your needs regarding the support of legacy browsers.