Click to return to the DHTML, HTML     
propertyName Property     qualifier Property     DHTML Properties    
Web Workshop  |  DHTML, HTML & CSS

protocol Property


Sets or retrieves the protocol portion of a URL.

Syntax

HTMLN/A
Scriptingobject.protocol [ = sProtocol ]

Possible Values

sProtocolString that specifies the protocol used to transfer information.

The property is read/write with no default value.

Remarks

The protocol property specifies how to transfer information from the host to the client. Microsoft® Internet Explorer supports several predefined protocols, including HTTP and FTP.

The protocol property returns the initial substring of a URL, including the first colon (for example, http:). However, the document and location objects expose the protocol property as read-only. The property returns the expanded text of the protocol acronym. For example, it returns the HTTP protocol as Hypertext Transfer Protocol.

Applies To

[ Object Name ]
PlatformVersion
Win16:
Win32:
Mac:
Unix:
WinCE:
A, AREA, document, IMG, 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.