Remember what the Dormouse said. Feed your head. Feed your head.” Jefferson Airplane
A resource for web developers a code snippet library with step by step tutorials.

a resource for web developers...

       

Search Amazon

JavaScript: Cookies tutorial code snippet 11.

 

Up Up to JavaScript: Cookies overview page

 

 

Separate mutiple descriptors and values in a single cookie using the 'split()' method.

Create a transient cookie to store mutiple descriptors and values separated by ':' and '|' characters.

Retrieve the contents of the cookie identified by its name and combining this with the 'split()' method to separate the descriptors and values.

Display the resulting split cookie contents in a bar chart.

 





Output view



Back to top

 

Bookmark and Share

 

Copyright © 2006-2010 justfigures.co.uk