I know that there are ways to get the width and height of the browser window. But what If I want to programmatically change the width or height. How do I do that?
I have assigned a value in window.innerWidth=500 and window.innerHeight = 500. But that does not help. What to do?
            Asked
            
        
        
            Active
            
        
            Viewed 1,171 times
        
    0
            
            
        
        nemo
        
- 5
 - 5
 
- 
                    https://stackoverflow.com/a/7048802/6555572 – Saurabh Agrawal Jan 02 '18 at 09:38
 
1 Answers
0
            
            
        You can do it with plain javascript function resizeTo() as suggested already in comments using:
(<any>window).resizeTo(width, height);
        Olezt
        
- 1,638
 - 1
 - 15
 - 31