Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to get parameter url js

// Example URL: https://example.com/over/there?name=ferret
const queryString = window.location.search;
const urlParams = new URLSearchParams(queryString);
const parameter_name = urlParams.get('name')
console.log(parameter_name);
Source by github.com #
 
PREVIOUS NEXT
Tagged: #parameter #url #js
ADD COMMENT
Topic
Name
3+5 =