Mega Code Archive

 
Categories / JavaScript Tutorial / Document
 

Document cookie

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>