次の単純なコードは Firefox (12.0) では機能しますが、ローカル ストレージが IE9 でサポートされているにもかかわらず、IE 9 では機能しないようです。alert(localStorage.lastname); の方法に注目してください。結果は表示されません。サポートされているとドキュメントに記載されているため、IE9 で localStorage を使用する際に既知の問題があるかどうか疑問に思っていました。
<!DOCTYPE html>
<html>
<body>
<script>
if(typeof(Storage)!=="undefined")
{
alert('local storage')
localStorage.lastname="Smith";
alert(localStorage.lastname);
}
else
{
alert("Sorry, your browser does not support web storage...")
}
</script>
</body>
</html>