Answers for "how to get parameters of a url in javascript"

29

get parameter from the actual url javascript

// https://testsite.com/users?page=10&pagesize=25&order=asc
const urlParams = new URLSearchParams(window.location.search);
const pageSize = urlParams.get('pageSize');
Posted by: Guest on December-04-2020

Code answers related to "how to get parameters of a url in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language