gecko-dev/dom/browser-element/mochitest/file_browserElement_Private...

16 строки
279 B
HTML

<html>
<body>
<script>
if (location.href.includes("clear=true")) {
localStorage.removeItem("foo");
alert("CLEAR");
} else {
var initialValue = localStorage.getItem("foo") || "EMPTY";
localStorage.setItem("foo", "bar");
alert(initialValue);
}
</script>
</body>
</html>