get query params

PHOTO EMBED

Mon Feb 13 2023 20:30:57 GMT+0000 (Coordinated Universal Time)

Saved by @mmerkley #html

const params = new Proxy(new URLSearchParams(window.location.search), {
  get: (searchParams, prop) => searchParams.get(prop),
});
console.log(params.{{ name of query }});
content_copyCOPY