I am trying to launch a window at 25% of its default device browser window size.
I tried the one below, and it worked. But its limitation is it can only take pixel as inputs, not the relative % as the inputs. So it will not be scalable across devices.
var h = window.innerHeight * .25; var w = window.innerWidth * .25; window.resizeTo(w,h);