Anchor.port (Property)

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

Availability:

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.

Warnings:

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