window-name-setter.html (245B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>A page that sets window.name</title> 4 5 <script> 6 "use strict"; 7 8 window.onload = () => { 9 window.name = location.hash.slice(1); // Drop the first '#' character. 10 window.name = "spices"; 11 }; 12 </script>