Create a cookie : Cookie : Development JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » Development » Cookie »

 

Create a cookie



    
<html>
<body>
<script language="JavaScript">
    myDate = new Date('12/22/2005 12:00 AM');
    document.cookie = 'firstName=Joe; 
    expires=' + myDate.toString + ';';
</script>
<button onclick="alert(document.cookie);">See Document Cookie</button>
</body>
</html>

    
      
      



-

Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

JAVASCRIPT DHTML TUTORIALS

 Navioo Development
» Cookie