GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Does anyone have javascrpt(or something else) code to maximize a window (https://gfy.com/showthread.php?t=816622)

nick3131 03-20-2008 10:59 PM

Does anyone have javascrpt(or something else) code to maximize a window
 
I tried using window.resizeTo but it doesn't seem to work on IE

Help me out please.

NickSunshine 03-20-2008 11:54 PM

<script language="JavaScript">

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

</script>

NickSunshine 03-20-2008 11:57 PM

damn nick, i read the title and posted without reading your post.

i pulled that scrap out of the <head> block of an old project and havent tried it in a year or two at least...

sorry.

andras 03-21-2008 12:13 AM

<head>
<script language="JavaScript1.2">
top.window.moveTo(0,0);
if (document.all)
{ top.window.resizeTo(screen.availWidth,screen.avail Height); }
else if
(document.layers || document.getElementById)
{
if
(top.window.outerHeight < screen.availHeight || top.window.outerWidth <
screen.availWidth)
{ top.window.outerHeight = top.screen.availHeight;
top.window.outerWidth = top.screen.availWidth; }
}
</script>
</head>


All times are GMT -7. The time now is 11:16 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123