Mark L. Reyes

Find URL parameter in JavaScript

	
		if (window.location.search.indexOf('track=yes') > -1) {
		    console.log('track present');
		} else {
		    console.log('track not here');
		}
	

Thanks to Stackoverflow

Exit mobile version