The URLSearchParams
interface defines utility methods to work with the query string of a URL.
Documentation URLSearchParams by Mozilla Contributors, licensed under CC-BY-SA 2.5.
See also:
Constructor
Methods
delete(name:String):Void
Deletes the given search parameter, and its associated value, from the list of all search parameters.
entries():URLSearchParamsIterator
Returns an Iteration_protocols
allowing to go through all key/value pairs contained in this object.
Throws:
null | DOMError |
---|
keys():URLSearchParamsIterator
Returns an Iteration_protocols
allowing to go through all keys of the key/value pairs contained in this object.
Throws:
null | DOMError |
---|
set(name:String, value:String):Void
Sets the value associated to a given search parameter to the given value. If there were several values, delete the others.
values():URLSearchParamsIterator
Returns an Iteration_protocols
allowing to go through all values of the key/value pairs contained in this object.
Throws:
null | DOMError |
---|