This article describes the method of dynamically modifying the size of a pop-up window in JavaScript. Share it for your reference. The details are as follows:
The following JS code demonstrates how to dynamically modify the window size by popping up a new window
<!DOCTYPE html> <html> <head> <script> var w; function openwindow() { w=('','', 'width=100,height=100'); (); } function myFunction() { (500,500); (); } </script> </head> <body> <button onclick="openwindow()">Create window</button> <button onclick="myFunction()">Resize window</button> </body> </html>
I hope this article will be helpful to everyone's JavaScript programming.