Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

window resizing

Status
Not open for further replies.

malonep

Programmer
Jul 14, 2004
44
CA
Hi,

I have a program that on logout. It closes the browser and opens a new window the same size (to prevent use of the back button).

But if the window was maximized the new window opens a tiny bit smaller than maximized and on my frames page the bottom frame disappears although there is plenty of room for it.

Is there a way to test if the current window is maximized. That way I could just set the new window to be maximized and it might fix the problem?

Thanks
 
malonep, this will not maximize the window the same way that clicking the maxmize button will. However, it will fit the browser window to the dimensions of the screen. Simulating the maximize button is not possible in javascript w/o using an ActiveX object.
Code:
<html>
<head>
<script language=javascript>

window.moveTo(0,0);
window.resizeTo(screen.width,screen.height);

</script>

</head>
<body>
<form name=blahForm>
Maximize Window Test
</form>
</body>
</html>

-kaht
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top