Develop Websites
Build Apps
Go Headless
APIs and SDKs
/
protocol
protocol
string
Read-only
Gets the protocol of the current page's URL.
Premium sites:
Free sites:
Example shown:
Get the protocol of the current page's URL
JavaScript
Did this help?
Yes
No