JavaScript - know the value of GET parameters from URL

To know the value of GET parameters from URL in JavaScript, the code is as follows −

Example

 Live Demo





Document



GET parameters from URL

https://www.google.com?imageSize=440&color=blue

Click on the above button to get the imageSize and color value from the above URL

Output

On clicking the ‘CLICK HERE’ button −


Updated on: 2020-05-11T12:57:08+05:30

270 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements