Available on HTML5
URLSearchParams interface defines utility methods to work with the query string of a URL.
Appends a specified key/value pair as a new search parameter.
Sets the value associated to a given search parameter to the given value. If there were several values, delete the others.