Anchor.port (Property)

In MSIE the Url.port property is also available as the Anchor.port property.


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

This yields the port number value of the HREF attribute in an <A> tag.

You can assign a value to this property as if it was an LValue.


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