From 3fb18a0423d8c5616ffda4ce0fbd7a25d7e8c27f Mon Sep 17 00:00:00 2001 From: proochster Date: Sun, 6 Oct 2019 15:54:19 +0100 Subject: [PATCH] +JS: get cookie --- collections/_javascript/get-cookie.html | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 collections/_javascript/get-cookie.html diff --git a/collections/_javascript/get-cookie.html b/collections/_javascript/get-cookie.html new file mode 100644 index 0000000..e6d4e6a --- /dev/null +++ b/collections/_javascript/get-cookie.html @@ -0,0 +1,7 @@ +--- +title: get cookie +description: 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. +tags: javascript cookie +date: 2019-10-06 +--- +var readCookie = document.cookie; \ No newline at end of file