Revision: 25802
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at April 9, 2010 09:56 by linusx
Initial Code
var host = location.hostname; //var myLocalStorage = globalStorage[host]; // firefox 3+ var myLocalStorage = localStorage; // firefox 3.5+ var items = myLocalStorage.length var s = '<h2>Items for '+host+'</h2><ul>'; for (var i=0;i<items;i++){ var itemName = myLocalStorage.key(i); s+= '<li><strong>'+itemName+'</strong></li>'; } $('#footer').html(s+'</ul>');
Initial URL
http://wwwtest.mit.com/
Initial Description
Javascript code to view information stored in firefox 3.5 or 3.0 localStorage
Initial Title
View Firefox 3.5 localStorage
Initial Tags
Initial Language
JavaScript