Click to See Complete Forum and Search --> : cookie editor scriptlet only works selectively


iNerd
07-25-2004, 02:02 PM
I wrote this little JavaScriptlet to see if I could, and it works, but it doesn't:
javascript:void((function(){

var cs=prompt('Cookie',document.cookie);
if(cs||typeof(cs)=='string')
document.cookie=cs

})());
This script doesn't always work. On some sites, it edits the cookie, and they stay edited. On other sites, runs without error, but the cookie remains unedited. Why, and what could I do to solve this?

(I'm using MSIE 5.1.7 // Mac OS 9, incase it's the browser)

Thx, iNerd