Include the following at the top of your Javascript:
cookies = [];
for (c in C=document.cookie.split('; '))
{cookies[(cs=C[c].split('='))[0]]=unescape(cs[1]);}Now you can access your cookies like this:alert(cookies['myCookie']);
Interaction design • webdevelopment • web art • photography
Include the following at the top of your Javascript:
cookies = [];
for (c in C=document.cookie.split('; '))
{cookies[(cs=C[c].split('='))[0]]=unescape(cs[1]);}Now you can access your cookies like this:alert(cookies['myCookie']);