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:
@@ -34,7 +34,7 @@
|
||||
[ 0 Jul 21 15:46] <a class="DIR" href="./fastforward/">fastforward</a><br>
|
||||
[ 0 Jul 14 17:07] <a class="DIR" href="./favicon-cors/">favicon-cors</a><br>
|
||||
[ 0 Jul 5 17:58] <a class="DIR" href="./favicon-svg/">favicon-svg</a><br>
|
||||
[ 0 Feb 17 0:37] <a class="DIR" href="./float/">float</a><br>
|
||||
[ 0 Feb 17 2023] <a class="DIR" href="./float/">float</a><br>
|
||||
[ 0 Jul 9 2022] <a class="DIR" href="./focus/">focus</a><br>
|
||||
[ 0 Nov 9 2022] <a class="DIR" href="./js/">js</a><br>
|
||||
[ 0 Oct 7 2022] <a class="DIR" href="./links/">links</a><br>
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user