{"id":76,"date":"2023-08-25T17:34:48","date_gmt":"2023-08-25T17:34:48","guid":{"rendered":"\/\/api.jquerymobile.com\/1.4\/?p=76"},"modified":"2023-08-25T17:34:48","modified_gmt":"2023-08-25T17:34:48","slug":"jQuery.mobile.path.getLocation","status":"publish","type":"post","link":"https:\/\/api.jquerymobile.com\/1.4\/jQuery.mobile.path.getLocation\/","title":{"rendered":"jQuery.mobile.path.getLocation()"},"content":{"rendered":"<article id=\"jQuery-mobile-path-getLocation1\" class=\"entry method\"><h2 class=\"section-title\">\n<span class=\"name\">jQuery.mobile.path.getLocation()<\/span><span class=\"returns\">Returns: <a href=\"http:\/\/api.jquery.com\/Types\/#String\">String<\/a><\/span>\n<\/h2>\n<div class=\"entry-wrapper\">\n<p class=\"desc\"><strong>Description: <\/strong>Utility method for safely retrieving the current location.<\/p>\n<ul class=\"signatures\"><li class=\"signature\">\n<h4 class=\"name\"><a id=\"jQuery-mobile-path-getLocation\" href=\"#jQuery-mobile-path-getLocation\"><span class=\"icon-link\"><\/span>jQuery.mobile.path.getLocation()<\/a><\/h4>\n<ul><li><div class=\"null-signature\">This method does not accept any arguments.<\/div><\/li><\/ul>\n<\/li><\/ul>\n<div class=\"longdesc\" id=\"entry-longdesc\">\n\t\t<p>The browser&apos;s <code>location.href<\/code> may contain the username\/password information. <code>getLocation()<\/code> always returns <code>location.href<\/code> stripped of the username\/password information if present, ensuring that your code is not vulnerable to XSS attacks.<\/p>\n\t<\/div>\n<\/div><\/article>","protected":false},"excerpt":{"rendered":"<p>Utility method for safely retrieving the current location.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-76","post","type-post","status-publish","format-standard","hentry","category-path"],"_links":{"self":[{"href":"https:\/\/api.jquerymobile.com\/1.4\/wp-json\/wp\/v2\/posts\/76","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/api.jquerymobile.com\/1.4\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/api.jquerymobile.com\/1.4\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/api.jquerymobile.com\/1.4\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/api.jquerymobile.com\/1.4\/wp-json\/wp\/v2\/comments?post=76"}],"version-history":[{"count":1,"href":"https:\/\/api.jquerymobile.com\/1.4\/wp-json\/wp\/v2\/posts\/76\/revisions"}],"predecessor-version":[{"id":77,"href":"https:\/\/api.jquerymobile.com\/1.4\/wp-json\/wp\/v2\/posts\/76\/revisions\/77"}],"wp:attachment":[{"href":"https:\/\/api.jquerymobile.com\/1.4\/wp-json\/wp\/v2\/media?parent=76"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/api.jquerymobile.com\/1.4\/wp-json\/wp\/v2\/categories?post=76"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/api.jquerymobile.com\/1.4\/wp-json\/wp\/v2\/tags?post=76"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}