If Cookie Exists, Don't Run The JavaScript Code
I've got this code that shows an annoying ext intent overlay when going to the back button, but I don't want it to show up if a specific cookie exists. This is the cookie my exit b
Solution 1:
You have to check if there substring in cookie string by indexOf method.
if (document.cookie.indexOf("dontshow=OK") != -1) ...
Post a Comment for "If Cookie Exists, Don't Run The JavaScript Code"