-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathotroDocumento.html
More file actions
41 lines (30 loc) · 1.19 KB
/
Copy pathotroDocumento.html
File metadata and controls
41 lines (30 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width"/>
<script type="text/javascript" charset="utf-8" src="cordova.js"></script>
<title>otro documento</title>
<style>
button {
width: 90%;
height: 25px;
margin: 5px auto;
}
</style>
<script>
function borrarLocalStorage(){
window.localStorage.removeItem("local")
}
function borrarSessionStorage(){
window.sessionStorage.removeItem("session")
}
</script>
</head>
<body >
<p>Al salir del documento anterior, borraste las variables normales, pero localstorage y sessionStorage siguen activas hasta que las borres.</p>
<p> si cierras esta app, la variable sessionStorage tambien se elimina. </p>
<a href="index.html"> regresar </a>
<button onclick="borrarLocalStorage()"> Borrar localstorage </button>
<button onclick="borrarSessionStorage()"> Borrar sessionStorage </button>
</body>
</html>