Prop Doc Cookie
# HTML DOM cookie Property
[ Document Object](#)
* * *
## Definition and Usage
The cookie property returns all cookies for the current document as a list of **key/value** pairs.
## Syntax
document.cookie
* * *
## Browser Support

The cookie property is supported by all major browsers.
* * *
## Example
## Example
All cookies associated with the current document:
Cookies associated with this document:
document.write(document.cookie);
[Try it Yourself Β»](#)
* * Document Object](#)
YouTip