You can see below the API reference of this module.
Finds the value of parameter passed in first argument.
- String
name
: The parameter name. - Boolean
notDecoded
: Iftrue
, the result will be encoded.
- String|Boolean|Undefined The parameter value (as string),
true
if the parameter is there, but doesn't have a value, orundefined
if it is missing.
Parses a string as querystring. Like the queryString
method does, if
the parameter is there, but it doesn't have a value, the value will
be true
.
- String
search
: An optional string that should be parsed (default:window.location.search
).
- Object The parsed querystring. Note this will contain empty strings for
Stringifies a query object.
- Object
queryObj
: The object that should be stringified.
- String The stringified value of
queryObj
object.
Adds, updates or deletes a parameter (without page refresh).
- String|Object
param
: The parameter name or name-value pairs as object. - String
value
: The parameter value. Ifundefined
, the parameter will be removed. - Boolean
push
: Iftrue
, the page will be kept in the history, otherwise the location will be changed but by pressing the back button will not bring you to the old location. - Boolean
triggerPopState
: Triggers the popstate handlers (by default falsly).
- Url The
Url
object.
Returns the page url, but not including the domain name.
- String The page url (without domain).
Sets/gets the hash value.
- String
newHash
: The hash to set. - Boolean
triggerPopState
: Triggers the popstate handlers (by default falsly).
- String The location hash.
Update the full url (pathname, search, hash).
- String
s
: The new url to set. - Boolean
push
: Iftrue
, the page will be kept in the history, otherwise the location will be changed but by pressing the back button will not bring you to the old location. - Boolean
triggerPopState
: Triggers the popstate handlers (by default falsly).
- String The set url.
pathname Sets/gets the pathname.
- String
pathname
: The pathname to set. - Boolean
push
: Iftrue
, the page will be kept in the history, otherwise the location will be changed but by pressing the back button will not bring you to the old location. - Boolean
triggerPopState
: Triggers the popstate handlers (by default falsly).
- String The set url.
Calls the popstate handlers.
Adds a popstate handler.
- Function
cb
: The callback function.
Removes the hash from the url.
- Boolean
push
: Iftrue
, the page will be kept in the history, otherwise the location will be changed but by pressing the back button will not bring you to the old location. - Boolean
trigger
: Triggers the popstate handlers (by default falsly).
Removes the querystring parameters from the url.
- Boolean
push
: Iftrue
, the page will be kept in the history, otherwise the location will be changed but by pressing the back button will not bring you to the old location. - Boolean
trigger
: Triggers the popstate handlers (by default falsly).