Examples on using the JavaScript database in Safari from Apple.
Link: Safari Client-Side Storage and Offline Applications Programming Guide: Using the JavaScript Database