jQuery Mobile is no longer supported. Please see the announcement blog post for more information.
  • jQuery
  • jQuery UI
  • jQuery Mobile
  • Sizzle
  • QUnit
  • Plugins
  • Contribute
    • CLA
    • Style Guides
    • Bug Triage
    • Code
    • Documentation
    • Web Sites
  • Events
  • Support
    • Learning Center
    • Chat
    • Stack Overflow
    • Report a bug
  • OpenJS Foundation
    • Join
    • Members
    • jQuery Team
    • Governance
    • Conduct
    • Projects

jQuery Mobile API Documentation

  • Demos
  • Download
  • API Documentation
  • Themes
  • Resources
  • Blog
  • About

Category: Path


A collection of methods for dealing with paths.

jQuery.mobile.path.get()

Utility method for determining the directory portion of an URL.

jQuery.mobile.path.getDocumentBase()

Utility method for retrieving the original document base URL.

jQuery.mobile.path.getDocumentUrl()

Utility method for retrieving the URL of the original document.

jQuery.mobile.path.getLocation()

Utility method for safely retrieving the current location.

jQuery.mobile.path.isAbsoluteUrl()

Utility method for determining if a URL is absolute.

jQuery.mobile.path.isRelativeUrl()

Utility method for determining if a URL is a relative variant.

jQuery.mobile.path.isSameDomain()

Utility method for determining if a URL has the same domain.

jQuery.mobile.path.makePathAbsolute()

Utility method for converting a relative file or directory path into an absolute path.

jQuery.mobile.path.makeUrlAbsolute()

Utility method for converting a relative URL to an absolute URL.

jQuery.mobile.path.parseLocation()

Utility method for retrieving the current location as a parsed object.

  • CSS Framework
  • Events
  • Icons
  • Methods
    • Path
  • Reference
  • Widgets
  • Learning Center
  • Chat
  • Twitter
  • GitHub

Copyright 2025 OpenJS Foundation and jQuery contributors. All rights reserved. See jQuery License for more information. The OpenJS Foundation has registered trademarks and uses trademarks. For a list of trademarks of the OpenJS Foundation, please see our Trademark Policy and Trademark List. Trademarks and logos not indicated on the list of OpenJS Foundation trademarks are trademarks™ or registered® trademarks of their respective holders. Use of them does not imply any affiliation with or endorsement by them. OpenJS Foundation Terms of Use, Privacy, and Cookie Policies also apply.

Web hosting by Digital Ocean | CDN by Fastly | Powered by WordPress