Public
Edited
Feb 2, 2023
Insert cell
Insert cell
params = new URLSearchParams(location.search)
Insert cell
Insert cell
viewof param = Inputs.select(["one", "two", "three"], { value: "one" })
Insert cell
params.get("foo")
Insert cell
params.getAll("foo")
Insert cell
params.has("foo")
Insert cell
{
params.set("param", param);
const newRelativePathQuery =
window.location.pathname + "?" + params.toString();
history.pushState(null, "", newRelativePathQuery);
}
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more