document.cookie : cookie « Document « JavaScript Tutorial






Syntax

document.cookie

The cookie property provides the ability to read and write cookies.

A cookie represents a small amount of data stored by web browser to share information.

<html>
    <script>
    <!--
    document.cookie = "temperature=75";

    document.write("The cookie contains: ",document.cookie);

    -->
    </script>
    </html>








14.9.cookie
14.9.1.document.cookie