Is there a way to open a window at 25% of its default device browser window size?
I attempted the code below, which worked. However, it only accepts pixel inputs and not relative % values. This makes it non-scalable across various devices.
window.resizeTo(width, height);
Does anyone have any suggestions on how to achieve this with % values?
Update: How can I make sure this window opens in a new browser tab with the address bar hidden?
I want to launch a chat window that always opens in a new, smaller window with minimal tools visible (only close, min/max buttons).