Skip to content Skip to sidebar Skip to footer

Delete Specific Cookie In Chrome Extension When The Icon Clicked

this is my first program and i'm getting lost.. I try to do an extension that delete one cookie from specific web when I click on the icon of this extension. What's wrong with my c

Solution 1:

I have done this thing in my extension

delete_cookie('cookies_name');

var delete_cookie = function(name) {
    document.cookie = name + '=;expires=Thu, 01 Jan 1970 00:00:01 GMT;';
};

that work fine for me.

Post a Comment for "Delete Specific Cookie In Chrome Extension When The Icon Clicked"