Document.cookie

The Document property cookie lets you read and write cookies associated with the document. It serves as a getter and setter for the actual values of the cookies.