O'Reilly logo

Oracle® Web Application Programming for PL/SQL® Developers by Benjamin Rosenzweig, Solomon Morse, Melanie Caffrey, Susan Boardman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Unit 15.3. JavaScript and Cookies

Document.Cookie

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 

Reading 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>'); ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required