WebWoman Search

Retrieving Cookies with JavaScript
(Using the cookie library)

The syntax for GetCookie is:

   GetCookie(name)

The code I used here to retrieve the cookie called "nickname" is:

   if (GetCookie("nickname") != null) {
      document.write("

Welcome, ", GetCookie("nickname"), "!


") }

WebWoman™ - Your web development superhero!      Phone: (843) 821-1466