Answers for "url path with elimant id"

0

url path with elimant id

// https://some.site/?id=123
var parsedUrl = new URL(window.location.href);
console.log(parsedUrl.searchParams.get("id")); // 123
Posted by: Guest on August-14-2020

Browse Popular Code Answers by Language