Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

get url params with js

const queryString = window.location.search;

const urlParams = new URLSearchParams(queryString);

const page_type = urlParams.get('page_type')

console.log(page_type);
Source by easyautotagging.com #
 
PREVIOUS NEXT
Tagged: #url #params #js
ADD COMMENT
Topic
Name
9+4 =