Getting the current URL in JavaScript

The page protocol is: https: