December 2002
Intermediate to advanced
745 pages
17h 26m
English
Cookies can also be created, sent, and read with JavaScript. Cookies are supported starting with JavaScript 1.0 as part of the Document Object Model. They are a property of the document object.
FOR EXAMPLE
document.cookie
Below is an alert that will show all cookies that have been created for the current page. If you want to check the values of the cookies you created via the Web Toolkit, simply read document.cookie:
FOR EXAMPLE
htp.p('<SCRIPT>alert(document.cookie);</SCRIPT>'); ...