Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript reading query parameter

// example url: https://mydomain.com/?fname=johnny&lname=depp
const urlParams = new URLSearchParams(window.location.search);
const firstName = urlParams.get('fname'); // johnny
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #reading #query #parameter
ADD COMMENT
Topic
Name
1+8 =