I have the following code:
<script type="text/javascript">
for (i=0;i<localStorage.length;i++)
{
var key = localStorage.key(i);
if(key == "5")
{
var value = localStorage.getItem(key);
document.write(value + "<br />");
}
}
</script>
I have tried to print all the element with a specific content - for a demo it could be 5, but I couldn't get it.
Any help?