How to remove and reload cookie on any page click?
<p>I have set up a cookie working called "popupVisit". Cookies are now working on all pages. However I need this to be removed and renewed when new pages are clicked. It will then remember those pages have been clicked and the cookie will remain.</p>

<p>Currently I have the below code going but doesn't work. The cookie remains on any links clicked, which makes sense with the code but not what I need. Any other way to get this to work, targeting any links?</p>

<pre><code>$("a").click( function(e){
    $.removeCookie('popupVisit', { path: '/' });
    location.reload();
});
</code></pre>