HTML DOM Document cookie
HTML DOM Document cookie Property
The cookie property is used for either setting or returning document cookies. It will return the cookie in the form of a semicolon-separated list in key=value pairs.
Syntax:-
Its syntax is:- document.cookie OR document.cookie = newCookie
Return:-
Its return is:- semicolon-separated list in form of key=value pairs
Further Explanation:-
Value | Description |
newCookie |
expires=date max-age=seconds path=path domain=domainname secure |