protocol( )


Gets the protocol of the current page's URL.

Premium sites: Premium site protocol

Free sites: Free site protocol

Method Declaration
Copy
Request
This method does not take any parameters
Returns
Return Type:Promise<string>
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?