Javascript/jquery Only Gets Executed On First Visit, Cookie Prevents It From Executing Again
How can I make JavaScript (or jQuery) code only execute on the visitor's first visit and never again until a cookie expires or is removed? For example: $('#example').hide(); How ca
Solution 1:
try this tut: http://www.electrictoolbox.com/jquery-cookies/ set a cookie on first visit, read it out on any subsequent visit and do something like:
if($.cookie.isset() == true) {
//do something
}
Post a Comment for "Javascript/jquery Only Gets Executed On First Visit, Cookie Prevents It From Executing Again"