JavaScript current URL check
<p>I am wondering how I would get JavaScript to check if a user is on a certain URL so i can build an if statement from the result. </p>

<p>My reasoning is that if a user clicks on a link in the menu and they are currently on trucks.php the javascript will redirect them to a certain page. If they are not on trucks.php they will be directed to a different page.</p>

<p>Cheers guys. </p>
