A Cookie Test Program : Cookie : Development JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » Development » Cookie »

 

A Cookie Test Program



<HTML>
<HEAD>
<TITLE>Cookie Test</TITLE>
<SCRIPT LANGUAGE="JavaScript"><!--
function updateCookie() {
 document.cookie=document.form1.cookie.value
 location.reload(true)
}
// --></SCRIPT>
</HEAD>
<BODY>
<SCRIPT LANGUAGE="JavaScript">
 document.write("Your current cookie value is: '"+ document.cookie+"'")
</SCRIPT>
<FORM ACTION="" NAME="form1">
<P>Enter new cookie: <INPUT TYPE="TEXT" SIZE="60" NAME="cookie"></P>
<INPUT TYPE="BUTTON" NAME="setCookie" VALUE="Set Cookie" onClick="updateCookie()">
</FORM>
</BODY>
</HTML>



           
       



-

Leave a Comment / Note


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

Follow Navioo On Twitter

JAVASCRIPT DHTML TUTORIALS

 Navioo Development
» Cookie