Reputation: 3
How to get ID Parameter in my url
how to get id= value in html
GET ID IN URL
also anyone tell for applications
Upvotes: 0
Views: 646
Reputation: 300
What you are looking for is called a query parameter, you can get it with plain javascript like this.
const urlParams = new URLSearchParams(window.location.search);
const myParam = urlParams.get('myParam');
reference -> How can I get query string values in JavaScript?
Upvotes: 1