Click to return to the DHTML, HTML     
PLUGINSPAGE Attribute | p...     posBottom Property     DHTML Properties    
Web Workshop  |  DHTML, HTML & CSS

port Property


Sets or retrieves the port number associated with a URL.

Syntax

HTMLN/A
Scriptingobject.port [ = sPort ]

Possible Values

sPortString 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

[ Object Name ]
PlatformVersion
Win16:
Win32:
Mac:
Unix:
WinCE:
A, AREA, location


Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.