Utility method for safely retrieving the current location.
The browser's location.href
may contain the username/password information. getLocation()
always returns location.href
stripped of the username/password information if present, ensuring that your code is not vulnerable to XSS attacks.
This method does not accept any arguments.
Please login to continue.