Difference between revisions of "CR.url"

From Market Ruler Help
Jump to: navigation, search
(Redirected page to CR.URL)
 
(13 intermediate revisions by the same user not shown)
Line 1: Line 1:
−
The '''__CR.URL''' function is a [[JavaScript]] function that parses the current URL. It returns a newly created URL object representing the URL defined by the parameters.
+
#REDIRECT [[CR.URL]]
−
 
 
−
== Using CR.URL() ==
 
−
 
 
−
When you call CR.URL() it parses the current URL and the following structure is returned (data is included as part of this example).
 
−
    {protocol: "https", host: "addresslock.com", path: "/", hash: "", query: "", …}
 
−
 
 
−
''"protocol"'': is the type of protocol. In this case, "Hypertext Transfer Protocol"
 
−
 
 
−
''"host"'': returns the current domain
 
−
 
 
−
''"path"'': gives the
 
−
 
 
−
''"hash"'':
 
−
 
 
−
''"query"'':
 
−
 
 
−
When you update queryparams, the following changes result:
 
−
 
 
−
Sample page x
 
−
Sample page y
 
−
 
 
−
    hash: ""
 
−
    host: "addresslock.com"
 
−
    parse: ƒ (url)
 
−
    parseQuery: ƒ (q)
 
−
    path: "/"
 
−
    port:
 
−
    protocol: "https"
 
−
    query: ""
 
−
    queryParams: undefined
 
−
    queryparams: {}
 
−
    unparse: ƒ ()
 
−
    unparseQuery: ƒ ()
 
−
    url: "https://addresslock.com/"
 
−
    arguments: (...)
 
−
    caller: (...)
 
−
    length:
 
−
    name: ""
 
−
    prototype: {}
 
−
    __proto__: ƒ ()
 
−
    [[FunctionLocation]]:
 
−
    [[Scopes]]: Scopes[]
 
−
 
 
−
 
 
−
   
 
−
 
 
−
 
 
−
 
 
−
== See also ==
 
−
 
 
−
* [[:Category:ConversionRuler JavaScript Functions|JavaScript Functions]]
 
−
* [[:Glossary:Parse|Parse]]
 
−
 
 
−
 
 
−
Category:ConversionRuler]]
 
−
Category:ConversionRuler JavaScript Functions]]
 

Latest revision as of 18:59, 24 June 2020

Redirect to: