Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

reading data from link in javascript

# running on https://www.example.com?name=n1&name=n2
let params = new URLSearchParams(location.search);
params.get('name') # => "n1"
params.getAll('name') # => ["n1", "n2"]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #reading #data #link #javascript
ADD COMMENT
Topic
Name
5+5 =