H. Nalamalapu H. Nalamalapu - 3 months ago 28
CSS Question

How to open a browser window at 25% of its default size?

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.

window.resizeTo(width, height);

Any suggestions please?

How do I force this window to open in a new browser and with the address bar hidden?

I am trying to launch a chat window so it should always open in a new and reduced window without any tools except close, min/max buttons on browser.

var h = window.innerHeight * .25;
var w = window.innerWidth * .25;