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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Window maximise in IE 1

Status
Not open for further replies.

mickey9999

Technical User
Aug 28, 2003
6
AU
Is there any way I can get a page to maximise when the page loads? It would preferably be like hitting the maximise button (F11-type full screen would freak out the users if they lost their toolbars, etc.). This is on an intranet.

Thanks in advance...
 
This should do it in IE 4 and later:

javascript:moveTo(0,0);
window.resizeTo(screen.availWidth,screen.availHeight);


It wont actually be maximized but it will fill the screen.

Have fun.


Travis Hawkins
BeachBum Software
travis@cfm2asp.com
 
Trav,

Excellent! not full size, but pretty damn close.

To make it an F11 key type(no bars, etc) , what would that require?

Merry Christmas & a big thanks!
 
Hmmm...

I think you would have to open it as a different window and set the properties to not put address bar or anything.

You can however get the rest of the screen by using:
javascript:moveTo(-4,-4);
window.resizeTo(screen.availWidth+8,screen.availHeight+8);

I don't know why but javascript robs you of a bit of the screen. You may have to mess with the exact numbers to get what you are looking for.

To make a window without address bar and all of that I beleive requires opening a new window. So it would be something like:

window.open('mypage.html', 'myWin',
'toolbar=no, directories=no, location=no,
status=yes, menubar=no, resizable=no, scrollbars=no,
width=800, height=600');

Of course you can change the Width and Height to screen.availWidth and screen.availHeight

I hope that gets it for you.




Travis Hawkins
BeachBum Software
travis@cfm2asp.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top