Sets or retrieves the protocol portion of a URL.
Syntax
HTML N/A Scripting object.protocol [ = sProtocol ]
Possible Values
sProtocol String 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
A, AREA, document, IMG, location