Window.Open()
method in the following file is still opening the browser window in minimized mode, you still have to click the maximize button on the top right corner of the newly opened window to maximize it. It maximizes the newly opened window to almost full screen but not completely - maybe, 95%. I need to have it open in 100% size (with windows status bar still showing as in the image below).
You can try by clicking the Try it
button after you open the following html file. I've tested on both Chrome and Edge:
<html>
<body>
<p>Click the button to open a new browser window.</p>
<button onclick="myFunction()">Try it</button>
<script>
function myFunction() {
window.open('https://www.google.com', 'popup_name','height=' + screen.height + ',width=' + screen.width + ',resizable=yes,scrollbars=yes,toolbar=yes,menubar=yes,location=yes');
}
</script>
</body>
</html>
Desired size of newly opened window [with occupying the whole screen but desktop's status bar on the bottom is still visible]: