Get query string values in JavaScript-Code Examples

Radu TM

Get query string values in JavaScript

JavaScript by Radu TM June 16, 2022

const urlParams = new URLSearchParams(window.location.search);
const myParam = urlParams.get('myParam');

0

18.826

Related JavaScript Queries

Latest JavaScript Queries

Explore code examples by categories