Posted By

ef on 08/22/13


Tagged


Versions (?)

Run given code only for other paths


 / Published in: JavaScript
 

Executes code only for locations other than specified.

  1. if (!window.location.pathname.match(/^\/path/)) {
  2. // code
  3. }

Report this snippet  

You need to login to post a comment.