<!--[if IE]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js">
</script>
<![endif]-->
Showing posts with label HTML5. Show all posts
Showing posts with label HTML5. Show all posts
Tuesday, April 14, 2015
If IE HTML5 JS
Thursday, December 4, 2014
Iterating over all cookies and local storage
console.log('COOKIES LIST BEGIN');
var theCookies = document.cookie.split(';');
for (var i = 1 ; i <= theCookies.length; i++) {
console.log(theCookies[i-1]);
}
console.log('COOKIES LIST END');
console.log('localStorage LIST BEGIN');
for(var i in localStorage) {
console.log(localStorage[i]);
}
for(var i=0, len=localStorage.length; i " + value);
if(key == 'GetSystemStatus') {
var bill = value.search(/ bill=\"8\" /);
console.log(bill);
bill != -1 ? console.log('did NOT find') : console.log('found it'); }
}
}
Labels:
cookies,
HTML5,
javascript,
local storage
Subscribe to:
Posts (Atom)