Beginning in Safari 3.1 and iPhone OS 2.0, Safari supports the HTML5 JavaScript database class. The JavaScript database class, based on SQLite, provides a very basic relational database intended for local storage of content that is too large to conveniently store in cookies (or is too important to accidentally delete when the user clears out his or her cookies)...
Safari Reference Library > Using the JavaScript Database