3
Reply

Cookie in Java Script

kalpana jaiswal

kalpana jaiswal

Nov 27 2017 10:53 AM
179
can we store multiple value in cooking through javascript ???
like as  i am trying to do in below code segment...
 
if (document.frmRegistration.txtName.value!="" && document.frmRegistration.txtAge.value!="")
{
cookieName= escape(document.frmRegistration.txtName.value) + ";";
cookieAge=escape(document.frmRegistration.txtAge.value)+";";
document.cookie="name="+cookieName+";age="+cookieAge+";";
document.write("Name="+cookieName+"Age="+cookieAge);


Upload Source Code  Select only zip and rar file.
Answers (3)