Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

get id in url params

<script>
    var urlParams = new URLSearchParams(window.location.search);
    let name = params.get("name"); // is the string "Jonathan"
</script>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #id #url #params
ADD COMMENT
Topic
Name
5+9 =