Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <head> <title>Title of the Document</title> </head> <body> <script> document.cookie = "user=Jack"; // update just the cookie named 'user' alert(document.cookie); // show all the cookies </script> </body> </html>