Log in

View Full Version : Storage not working here



ceerup
05-25-2012, 06:29 PM
<html>
<body>
<h2>Demo of Local Storage: My to do list </h2>
<ul>
<li id="edit" contenteditable="true"> </li >
</u>

// This part should store what's written.
<script> // This Script needs works
if(typeof(Storage)!=="undefined")
{ localStorage.edit=getElementById("edit");
$edit.blur(function(
localStorage.setItem( 'toDoData' , this.innerHTML));
if
document.getElementById("edit").innerHTML=("Test of : " + localStorage.Edit);
) }
</script>

</body>
</html>