MDN’s new design is in Beta! A sneak peek:

The URLUtils.searchParams property is a URLSearchParams containing the query/search parameters of the URL.

Note: This feature is available in Web Workers.


object2 = object.searchParams;
object.searchParams = object2;


var anchor = document.createElement("a");
anchor.href = ""
var searchParams = anchor.searchParams;

searchParams.has("topic") === true; // true
searchParams.get("topic") === "api"; // true
searchParams.getAll("topic"); // ["api"]
searchParams.get("foo") === ""; // true
searchParams.append("topic", "webdev");
searchParams.toString(); // "q=URLUtils.searchParams&topic=api&topic=webdev"
searchParams.toString(); // "q=URLUtils.searchParams"
anchor.href; // ""


Specification Status Comment
URL Living Standard Initial definition.

Browser compatibility

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support No support 29.0 (29.0) No support No support No support
Feature Android Chrome for Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support No support No support 29.0 (29.0) No support No support No support

See also

Document Tags and Contributors

 Contributors to this page: teoli, chrisdavidmills, ziyunfei, mnoorenberghe
 Last updated by: teoli,