Document.protocol (Property)

The protocol that was used when the document was loaded.


JScript - 1.0
Internet Explorer - 3.02
Property/method value type:String primitive
JavaScript syntax:IEmyDocument.protocol

This should yield the value HTTP or FILE or one of the other available protocols according to how the document was accessed. This allows you to build script code that can behave differently according to how the document was loaded.

See also:IMG.protocol, URL

Property attributes: