Mega Code Archive
Location port
The port property represents the port portion of the URL. This normally follows the hostname, but is not always available.
http://www.rntsoft.com:8080/index.htm, the port is equal to 8080.
Using the port property of the Location object