Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js get url variables

const postID = (new URLSearchParams(window.location.search)).get('post');
 
PREVIOUS NEXT
Tagged: #js #url #variables
ADD COMMENT
Topic
Name
1+2 =