Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to pass parameter in url in javascript

you can use backticks ``
// url params
const elemA = "Los Angelis";
const elemB = "London";
window.location.href = `http://www.gorissen.info/Pierre/maps/googleMapLocation.php?lat=${elemA}&lon=${elemB}&setLatLon=Set`;
 
PREVIOUS NEXT
Tagged: #pass #parameter #url #javascript
ADD COMMENT
Topic
Name
2+8 =