get id value from url

PHOTO EMBED

Tue Mar 21 2023 06:14:02 GMT+0000 (Coordinated Universal Time)

Saved by @davidmchale #searchparams #url #search #id

 const searchParams = new URLSearchParams(window.location.search);
  const id = searchParams.get('id');
  console.log(id)
content_copyCOPY