.currentScriptElement([match])
method
Gets the last loaded script element
Accepts
-
match
String to match against the script src attribute
Find the script
element where the script is running
Code
When it is used in an external file, a string to help the match in script src
should be passed
Code
Code
.genQueryString(uri, params)
method
Generates an URL string.
Accepts
-
uri
Base URL -
params
Object to transform to query string
Code
.getAnchor([str])
method
Gets the URL hash value
Accepts
-
str
URL String. Defaults to current page URL.
Code
.getAnchorString([string])
method
Gets the anchor string of an URL
Accepts
-
string
URL to parse. Defaults to current URL.
Code
A string in URL format can be passed as arguement
Code
.getQueryString([str])
method
Gets an object from an URL encoded string.
Accepts
-
str
URL String. When not specified it uses the current URL.
Code
A string in URL format can be passed as argument
Code
.getUrl()
method
Gets URL of current page
Code
.parseUrl(url)
method
Parses URL string into URL parts
Accepts
Code