adsense

Sunday, October 9, 2022

Add or Update query string parameter

 If we want to dynamically add or change query string,  URL API can be used as shown below

const url = new URL(location.href);

url.searchParams.set('queryStringKey', 'queryStringValue');


Cheers

Samitha



No comments:

Post a Comment