/ Published in: JavaScript
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 }