CR.url

From Market Ruler Help
Revision as of 02:29, 23 June 2020 by Lori (talk | contribs)
Jump to: navigation, search

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.

Using CR.URL()

__CR.data = function (name, value) { ... }

The name is the exact name of the variable to store and can be a string or scalar value. The name is converted to a string before usage. The value is a simple string, object, or numeric value to store. Values which are arbitrarily large (such as objects or deep structures) should be avoided as they can cause issues with servers which reject cookies which grow beyond a certain size limit. Example usage:

   hash: "" 
   host: ""
   parse: ƒ (url)
   parseQuery: ƒ (q)
   path: ""
   port: 
   protocol: ""
   query: ""
   queryParams: 
   queryparams: {}
   unparse: ƒ ()
   unparseQuery: ƒ ()
   url: ""
   arguments: (...)
   caller: (...)
   length: 
   name: ""
   prototype: {}
   __proto__: ƒ ()
   FunctionLocation: 
   Scopes: Scopes[]




See also