0

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?

nemo
  • 5
  • 5

1 Answers1

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