Develop Websites
Build Apps
Go Headless
APIs and SDKs
/
protocol( )
Gets the protocol of the current page's URL.
Premium sites:
Free sites:
Method Declaration
Copy
Request
This method does not take any parameters
Returns
Return Type:
Promise<string>
Did this help?
Yes
No