Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML DOM cookie property

HTML DOM cookie property

Document Object Reference Document Object


Definition and Usage

The cookie property returns all cookies of all key/value pairs of the current document.

Syntax

document.cookie


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the cookie property


Example

Example

All cookies associated with the current document:

Cookies related to this document:

Try it »


Document Object Reference Document Object