const regex = /\bcheckout\b/g; if(regex.test(window.location.href) === true){ console.log('on checkout page'); //run your script here }
FreeCurrencyRates.com