Msk Dev
Msk Dev

Reputation: 3

How to get ID Parameter in url also in java

How to get ID Parameter in my url

https://example.com/?id=8281

how to get id= value in html

GET ID IN URL

also anyone tell for applications

Upvotes: 0

Views: 646

Answers (1)

john mason
john mason

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

Related Questions