I'm currently using the following line to match this URL - www.sitename.com/join
if(/join/.test(self.location.href)) {joinPopUp();}
The catch is it will match /blahjoinblah as well.
How can I change this so it will only match the exact word 'join'.
Note: I think it will have to match '/join' as the '/' is still present (I think).
thankyou