1. Home
  2. Javascript
  3. Get cookie
#javascript#cookie

Read the cookie value by assigning it to a variable. This will return a string containing all the name value pairs set in a cookie.

var readCookie = document.cookie;
copy
Full Javascript cheatsheet
Sitemap Git repository