Export (0) Print
Expand All

2.3.2.23 port

port of type DOMString

Sets or retrieves the port number associated with a URL.

The port will resolve based on the default port for the protocol set in the href attribute: 21 for FTP, 80 for HTTP, and so forth. Proprietary protocols that do not require a port may return 0 or an empty string.

This is a DOM attribute only.

The port attribute extends the following interfaces:

Show:
© 2014 Microsoft