mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2024-12-08 15:45:14 +01:00
e826c9b1a0
- Fix Windows crash due to string type changes (issue #147). - Add missing svn:eol-style properties. git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@149 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
25 lines
774 B
HTML
25 lines
774 B
HTML
<html>
|
|
<body>
|
|
<script language="JavaScript">
|
|
var val = window.localStorage.getItem('val');
|
|
function addLine() {
|
|
if(val == null)
|
|
val = '<br/>One Line.';
|
|
else
|
|
val += '<br/>Another Line.';
|
|
window.localStorage.setItem('val', val);
|
|
document.getElementById('out').innerHTML = val;
|
|
}
|
|
</script>
|
|
Click the "Add Line" button to add a line or the "Clear" button to clear.<br/>
|
|
This data will persist across sessions if a cache path was specified.<br/>
|
|
<input type="button" value="Add Line" onClick="addLine();"/>
|
|
<input type="button" value="Clear" onClick="window.localStorage.removeItem('val'); window.location.reload();"/>
|
|
<div id="out"></div>
|
|
<script language="JavaScript">
|
|
if(val != null)
|
|
document.getElementById('out').innerHTML = val;
|
|
</script>
|
|
</body>
|
|
</html>
|