Get Url Use Javascript




const queryString = window.location.search;

console.log(queryString);

const queryString = window.location.search;


const urlParams = new URLSearchParams(queryString);

const page_type = urlParams.get('color')

console.log(page_type);


 From : https://easyautotagging.com/javascript-get-url-parameter/







Get Url Use Javascript Get Url Use Javascript Reviewed by Leo on Maret 17, 2022 Rating: 5

Tidak ada komentar

About me

About Me

My name is Joanne Doe, a lifestyle photographer and blogger currently living in Osaka, Japan. I write my thoughts and travel stories inside this blog.