I display video ads to my users. I don\'t host these ads by the way; I get them from another company.
When ever an ad is clicked it leaves a cookie in the user\'s b
This should do it:
function checkCookie() { var cookie = getCookie("PBCBD2A0PBP3D31B"); if (cookie != null && cookie != "") { alert("You clicked on an ad"); } if (counter > 10) clearInterval(clr); counter++; clr = setInterval(function(){checkCookie()}, 10000); } var counter = 0; checkCookie();