Editor in your web browser that holds up what ever you have written in the past even if your browser is closed. Works smoothly in Firefox 18.0.2
Here’s the code
<html>
<head>
<css if you want for the text area>
</head>
<body>
<div id=”result”></div>
<textarea id=”main” x=11 rows=”10″ cols=”50″ onkeyup=”displayResult();”>
</textarea>
<script>
if(typeof(Storage)!==”undefined”)
{
document.getElementById(“main”).value = localStorage.scratchPad;
}
else
{
document.getElementById(“result”).innerHTML=”Sorry, your browser does not support web storage…”;
}
</script>
<script>
function displayResult(){
if(typeof(Storage)!==”undefined”)
{
localStorage.scratchPad = document.getElementById(“main”).value;
}
else
{
document.getElementById(“result”).innerHTML=”Sorry, your browser does not support web storage…”;
}
}
</script>
</body>
</html>