I have opend开发者_如何学JAVA a popup window using javascript. now in that popup window i have got a button and on click on that button i wants to changes size of that (current/same page) popup window.
Please tell me how we can do this. Thanks
The methods you have to use are resizeTo() or resizeBy().
The option to resize a window may be restricted by browser-settings.
IE:
self.resizeTo(500,400);
Other browsers:
window.outerHeight = 500;
window.outerWidth = 400; 
Those examples were from the site mentioned below:
http://www.perlscriptsjavascripts.com/tutorials/javascript/window_1.html
Hope that helps :)
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论