Click to See Complete Forum and Search --> : kill a memory cookie


mrpokeypie
01-19-2004, 06:31 AM
I currently use a javascript bookmarklet to kill a memory cookie set by my shoppingcart company when i want to effectivly "reset all my items in the cart to zero" but it does not work when i run framesets.
I was wondering, is there any workaround for this. I have tried to run the bookmarklet from within the frame as a link but I'm having no luck.The JS bookmarklet is below

<A HREF="javascript:(function(){C=document.cookie.split(%22; %22);for(d=%22.%22+location.host;d;d=(%22%22+d).substr(1).match(/\..*$/))for(sl=0;sl<2;++sl)for(p=%22/%22+location.pathname;p;p=p.substring(0,p.lastIndexOf('/')))for(i in C)if(c=C[i]){document.cookie=c+%22; domain=%22+d.slice(sl)+%22; path=%22+p.slice(1)+%22/%22+%22; expires=%22+new Date((new Date).getTime()-1e11).toGMTString()}})()" ADD_DATE="0" LAST_VISIT="0" LAST_MODIFIED="0">zap cookies</A>

HELP!
I know you are all very smart and would appriciate a fix