Locally Stored Bookmarks [HTML5]

anyone ever tried to create store information locally using html5 internal storage? I am trying to develop a way to store bookmarks locally so that you can only access it within the web app and not in the browser. Each url should be stored in a local file an appended when the “create bookmark” link is pressed. Lastly based on the url i should see an icon for pages I have bookmark while going tru the titles. Anyone has an idea as how to do this.