Difference between revisions of "CR.url"

From Market Ruler Help
Jump to: navigation, search
Line 1: Line 1:
The '''__CR.URL''' function is a [[JavaScript]] function that parses the URL. It returns a newly created URL object representing the URL defined by the parameters.  
+
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.  
  
 
== Using CR.URL() ==
 
== Using CR.URL() ==
  
When you call CR.URL() the following structure is returned (data is included as part of this example).
+
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: "https", host: "addresslock.com", path: "/", hash: "", query: "", …}
 
     hash: ""  
 
     hash: ""  

Revision as of 02:43, 23 June 2020

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.

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: "", …}
   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]] Category:ConversionRuler JavaScript Functions]]