summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/common/window-name-setter.html
blob: c0603aa300838bad111899b1efaf058943f88e11 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
<!DOCTYPE html>
<meta charset="utf-8">
<title>A page that sets window.name</title>

<script>
"use strict";

window.onload = () => {
  window.name = location.hash.slice(1);  // Drop the first '#' character.
  window.name = "spices";
};
</script>