RSTâ„¢

Snips and bits from around the web, inspirational and noteworthy findings.

21
Apr 2010

Great overview of HTML5 capabilities and why you should be excited

JS APIs

Web Storage

// use localStorage for persistent storage
// use sessionStorage for per tab storage
textarea.addEventListener('keyup', function () {
  window.localStorage['value'] = area.value;
  window.localStorage['timestamp'] = (new Date()).getTime();
}, false);
textarea.value = window.localStorage['value'];

Use case: Save email draft on the client side (crash-safe)

-->