protocol property

Contains the protocol of the URL.

This property is read-only.

Syntax

JavaScript
ptr = object.protocol

 

Property values

Type: DOMString

String containing the protocol of the URL.

See also

WorkerLocation

 

 

Show: