Skip to main content
Location.protocol - Platform - Web documentation
property Location.protocol

Returns the Location object's URL's scheme.

Cannot be set in Deno.

Type

string