Base: Add test page for document.cookie
This commit is contained in:
parent
fe8cefa7c1
commit
59e47c3b11
Notes:
sideshowbarker
2024-07-18 20:31:10 +09:00
Author: https://github.com/trflynn89 Commit: https://github.com/SerenityOS/serenity/commit/59e47c3b11a Pull-request: https://github.com/SerenityOS/serenity/pull/6240
2 changed files with 16 additions and 0 deletions
Base/res/html/misc
15
Base/res/html/misc/cookie.html
Normal file
15
Base/res/html/misc/cookie.html
Normal file
|
@ -0,0 +1,15 @@
|
|||
<body>
|
||||
<input type=button onclick="setCookie('cookie1=value1')" value="Set Cookie 1" />
|
||||
<input type=button onclick="setCookie('cookie2=value2')" value="Set Cookie 2" />
|
||||
<input type=button onclick="setCookie('cookie3=value3')" value="Set Cookie 3" />
|
||||
<br /><pre id=cookies></pre>
|
||||
|
||||
<script>
|
||||
function setCookie(cookie) {
|
||||
document.cookie = cookie;
|
||||
document.getElementById('cookies').innerHTML = document.cookie;
|
||||
}
|
||||
|
||||
document.getElementById('cookies').innerHTML = document.cookie;
|
||||
</script>
|
||||
</body>
|
|
@ -38,6 +38,7 @@ span#loadtime {
|
|||
<p>This page loaded in <b><span id="loadtime"></span></b> ms</p>
|
||||
<p>Some small test pages:</p>
|
||||
<ul>
|
||||
<li><a href="cookie.html">document.cookie</a></li>
|
||||
<li><a href="last-of-type.html">CSS :last-of-type selector</a></li>
|
||||
<li><a href="first-of-type.html">CSS :first-of-type selector</a></li>
|
||||
<li><a href="background-repeat-test.html">background image with repetition rules</a></li>
|
||||
|
|
Loading…
Add table
Reference in a new issue