Get your own website Result Size: 625 x 565
x
 
<!DOCTYPE html>
<html>
<body>
<h1>The Window Object</h1>
<h2>The name Property</h2>
<p id="demo"></p>
<script>
<script>
const otherWindow = window.open();
otherWindow.name = "Butterfly";
</script>
<a href="http://www.w3schools.com/js" target="Butterfly">This link will open in a new tab.</a>
</body>
</html>