Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: syntax of multiple cookies


Message #1 by "Lawrence K" <lawrence@k...> on Thu, 24 May 2001 01:15:36
I own two books on javascript and they are both rather bad. I've looked 
through them and not gotten a sense of how one handles multiple cookies. 
Is it correct to say that if I set a cookie beenToSite=yes and set another 
cookie boughtBook=yes that I can then access these cookies as 

var holdVisitVaule = document.cookies.beenToSite

Now the variable holdVisitValue contains the string "yes" ? If not, how to 
do I get that value? How does one access multiple cookies? 

thanks,

Lawrence K. 

  Return to Index