H. Nalamalapu H. Nalamalapu - 1 year ago 81
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.

Answer Source
var h = window.innerHeight * .25;
var w = window.innerWidth * .25;
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download