August 1999
Intermediate to advanced
1488 pages
72h 53m
English
document.cookie
The cookie property provides the ability to read and write cookies. A cookie represents a small amount of data that a Web browser stores to allow information to be shared among Web pages
Listing 7.95 creates a cookie and then reads back the result.
<html>
<script>
<!-- Hide
//Create a cookie
document.cookie = "temperature=75";
//Display the contents of the cookie
document.write("The cookie contains: ",document.cookie);
//Hide End --->
</script>
</html>
|
Read now
Unlock full access