If a JSP page is minimized onload, we need to find a way to restore it through a JavaScript call. Are there any other methods available for achieving this? The restoration should be to the height and width selected by the user. I have attempted the following function:
<script language="JavaScript">
function Maximize() {
window.innerWidth = screen.width;
window.innerHeight = screen.height;
window.screenX = 0;
window.screenY = 0;
window.moveTo(0, 0);
window.resizeTo(screen.availWidth, screen.availHeight);
alwaysLowered = false;
}
</script>
However, this code does not fully restore the browser window. Even when users manually attempt to restore it, the window is maximized to the full window size rather than the size that the user initially selected.