Sets or retrieves the port number associated with a URL.
Syntax
HTML N/A Scripting object.port [ = sPort ]
Possible Values
sPort String that specifies the port number associated with the URL. The property is read/write with a default value of 21 for the ftp protocol, 70 for the gopher protocol, 80 for the http protocol, and 443 for the https protocol.
Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. For more information, see Dynamic Properties.
Remarks
Proprietary protocols that do not require a port return 0 or an empty string.
Applies To
A, AREA, location