Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (13 sloc) 816 Bytes
<script type="text/javascript">
var x = localStorage.getItem('foo');
<p>This page has called <code>localStorage.getItem('foo')</code>.
Since no data has been stored, no database file should have been created.</p>
<p>If you click <a href="javascript:localStorage.setItem('bar', 'baz');">here</a>, data will be stored, and a database file should be created.</p>
<p>If you click <a href="javascript:localStorage.clear();">here</a>, the local storage will be cleared, and the database file should be gone when the browser is closed.</p>
<p>(This is for <a href=""></a>
and <a href=""></a>.)</p>
Jump to Line
Something went wrong with that request. Please try again.