Offlineapp is a project mainly written in JavaScript, it's free.
Example Offline Application using HTML5 APIs
The purpose of this app is to serve an example for what you can do with HTML5 APIs and a little of CSS3.
Webdatabase
Application Cache
online / offline state
localStorage
sessionStorage
All code otherwise noted is under Public Domain.