1
0
mirror of https://github.com/Pathduck/pathduck.github.io.git synced 2025-12-29 11:45:20 -05:00

Changes to session test

This commit is contained in:
Stian Lund
2023-10-11 09:43:38 +02:00
parent f051fa8120
commit 08685740df
2 changed files with 6 additions and 5 deletions

View File

@@ -34,7 +34,7 @@
[&nbsp;&nbsp;&nbsp;0&nbsp;Jul&nbsp;21&nbsp;15:46]&nbsp;&nbsp;<a class="DIR" href="./fastforward/">fastforward</a><br>
[&nbsp;&nbsp;&nbsp;0&nbsp;Jul&nbsp;14&nbsp;17:07]&nbsp;&nbsp;<a class="DIR" href="./favicon-cors/">favicon-cors</a><br>
[&nbsp;&nbsp;&nbsp;0&nbsp;Jul&nbsp;&nbsp;5&nbsp;17:58]&nbsp;&nbsp;<a class="DIR" href="./favicon-svg/">favicon-svg</a><br>
[&nbsp;&nbsp;&nbsp;0&nbsp;Feb&nbsp;17&nbsp;&nbsp;0:37]&nbsp;&nbsp;<a class="DIR" href="./float/">float</a><br>
[&nbsp;&nbsp;&nbsp;0&nbsp;Feb&nbsp;17&nbsp;&nbsp;2023]&nbsp;&nbsp;<a class="DIR" href="./float/">float</a><br>
[&nbsp;&nbsp;&nbsp;0&nbsp;Jul&nbsp;&nbsp;9&nbsp;&nbsp;2022]&nbsp;&nbsp;<a class="DIR" href="./focus/">focus</a><br>
[&nbsp;&nbsp;&nbsp;0&nbsp;Nov&nbsp;&nbsp;9&nbsp;&nbsp;2022]&nbsp;&nbsp;<a class="DIR" href="./js/">js</a><br>
[&nbsp;&nbsp;&nbsp;0&nbsp;Oct&nbsp;&nbsp;7&nbsp;&nbsp;2022]&nbsp;&nbsp;<a class="DIR" href="./links/">links</a><br>

View File

@@ -8,8 +8,8 @@
<h2>Test of HTML5 localStorage and sessionStorage persistence</h2>
<p>Enter data in either box and click the button to store it. If you navigate to this page in a new window or tab, or quit and relaunch your browser, localStorage will remain and sessionStorage will disappear.</p>
<p>Reload the page to verify the values are stored.</p>
<p>Then click the button to open a popup window.</p>
<p>Reload the page to verify the values are stored. Then click the button to open a popup window.</p>
<p>Popups and new tabs opened from a <code>window.open</code> event should inherit both storage values</p>
<p>
Local storage:<br />
@@ -28,11 +28,12 @@
<script type="text/javascript" src="storage-test.js"></script>
<button onclick="openPopup()">Open Popup</button>
<button onclick="window.open('index.html', '_blank', 'width=600, height=500'); return false;">Open Popup</button>
<button onclick="window.open('index.html'); return false;">Open New Tab</button>
<script>
function openPopup() {
window.open("index.html", "_blank", "width=600, height=500");
}
</script>