W3cubDocs

/jQuery Mobile

jQuery.mobile.path.getLocation()

jQuery.mobile.path.getLocation()Returns: String

Description: 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.

© The jQuery Foundation and other contributors
Licensed under the MIT License.
https://api.jquerymobile.com/jQuery.mobile.path.getLocation