<html>
<body>
<h1>The Window Object</h1>
<h2>The resizeBy() Method</h2>
<p>Open a new window, and resize it:</p>
<p>Press "Resize window" multiple times (the window will increase each time).</p>
<button onclick="openWin()">Create window</button>
<button onclick="resizeWin()">Resize window</button>
<script>
let myWindow;
function openWin() {
myWindow = window.open("", "", "width=100, height=100");
}
function resizeWin() {
myWindow.resizeBy(250, 250);
}
</script>
</body>
</html>