/ Published in: JavaScript
![](/img/icon_sav.png?v3)
Executes code only for locations other than specified.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
if (!window.location.pathname.match(/^\/path/)) { // code }
Comments
![RSS Feed for Comments RSS Icon](/images/rss.png?v3)
if (!window.location.pathname.match(/^\/path/)) { // code }