jQuery.mobile.getDocumentBase()


jQuery.mobile.getDocumentBase( asParsedObject )version deprecated: 1.4.0

Description: Utility method for retrieving the original document base URL.

Note: jQuery.mobile.getDocumentBase is deprecated as of jQuery Mobile 1.4.0 and will be removed in 1.5.0. Use the jQuery.mobile.path.getDocumentBase() method instead.

  • jQuery.mobile.getDocumentBase( asParsedObject )

    • asParsedObject (default: false)
      Type: Boolean
      The function normally returns the original document base URL as a string. However, if you specify a truthy value for this parameter, the original document base URL will be returned in a hash as a parsed URL.