Return to Snippet

Revision: 14606
at June 7, 2009 17:32 by abwaters


Initial Code
function listCookies() {
    var theCookies = document.cookie.split(';');
    var aString = '';
    for (var i = 1 ; i <= theCookies.length; i++) {
        aString += i + ' ' + theCookies[i-1] + "\n";
    }
    return aString;
}

Initial URL
http://www.arachna.com/edu/tutorials/mini/cookies/javascript.html

Initial Description

                                

Initial Title
List Cookies in Javascript

Initial Tags

                                

Initial Language
JavaScript