I found this mdn document for the a tag but it does not list the hostname attribute. Where can I get info. on this? This is an attribute/property of the anchor object correct? And why the hell is this thing called an anchor instead of a link? That’s what it is..a hyperlink. Getting frustated with finding documentation…maybe I just overlooked it…actually I ran a search for hostname and no go.
Basically if I have
b=document.createElement('a')
b.href=c[2].value;
I can access
b.hostname
but I need documention for this property.
mdn is not the standard, which does mention the
hostnameattribute.An
<a>element is usually a link (i.e. itshrefproperty is set). However, you can also use it as an anchor, as in:This functionality is obsolete; you can now set the
idattribute of any element instead: