picoAjax - Demo 20

picoCookie: picoSetCookie(), picoGetCookie(), picoDelCookie()

picoStorage: picoSetLocalStorage(), picoGetLocalStorage(), picoDelLocalStorage()

picoStorage: picoSetSessionStorage(), picoGetSessionStorage(), picoDelSessionStorage()

 <button onclick="picoSetCookie('pi', 'pi=3.14',10)">setCookie</button>
 <button onclick="alert (picoGetCookie('pi'))">getCookie</button>
 <button onclick="picoDelCookie('pi')">delCookie</button>
<hr />

 <button onclick="picoSetLocalStorage('e', 'e=2.718')">setLocalStorage</button>
 <button onclick="alert (picoGetLocalStorage('e'))">getLocalStorage</button>
 <button onclick="picoDelLocalStorage('e')">delLocalStorage</button>
 <hr />

 <button onclick="picoSetSessionStorage('g', 'g=9.81')">setSessionStorage</button>
 <button onclick="alert (picoGetSessionStorage('g'))">getSessionStorage</button>
 <button onclick="picoDelSessionStorage('g')">delSessionStorage</button>


by R.K 2016