// Display cookies associated with the current site if (document.cookie.length<1) { alert('No cookies for this site.'); } else { s = document.cookie.split(';').join('\n'); alert(s); s = unescape(unescape(document.cookie.split(';').join('\n'))); alert(s); // alert(unescape(document.cookie.split(';').join('\n'))); }