modURL()

Modifie a URL.

This function is valid in v2.3.0 to v2.18.1. This function has been downloaded 17 times.

Parameters

{string=} opt_url Optional, Default:location.href
URL to modify and return. If undefined or null is specified this will default to the page's location.
{Object} options
An object indicating how to modify opt_url. Each property name should correspond to a valid URL property name. If a function is given as a property name it will be executed and the return value will be used as that property of the URL. Specifying an object for the "search" property will provide the ability to set individual search parameters.

Returns

{string}
The modified form of opt_url.

Required Functions

This function directly requires the following functions which are included automatically:

  • escape()
    Encodes a string to be used in a query part of a URL.
  • has()
    Every object descended from Object inherits the hasOwnProperty method. This method can be used to determine whether an object has the specified property as a direct property of that object; unlike the in operator, this method does not check down the object's prototype chain.
  • parseQS()
    Parses a URL to get the parameters specified in the query string.
  • typeOf()
    Either gets the type of a value or adds a constructor registering its custom type name.