1. Home
  2. Javascript
  3. Get 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.

#javascript#cookie
var readCookie = document.cookie;
copy
Full Javascript cheatsheet