Log in

View Full Version : Open Page in Full Window Mode



Cheng
06-23-2006, 02:43 PM
Hi Everybody.

Sorry, to ask this question again but I lost the file where I saved this code.
What I want to know is, what code I have to enter or what to do that if someone opens the index page that it opens automatically in full window mode?
Please help me out once more with this.
This time I will save it properly so it wont get lost again.

Thanks in advance.
Cheng

simonf
06-23-2006, 02:49 PM
<script language="JavaScript1.1">
<!--

/***********************************************
* Auto Maximize Window Script- © Dynamic Drive (www.dynamicdrive.com)
* This notice must stay intact for use
* Visit http://www.dynamicdrive.com/ for this script and 100's more.
***********************************************/

top.window.moveTo(0,0);
if (document.all) {
top.window.resizeTo(screen.availWidth,screen.availHeight);
}
else if (document.layers||document.getElementById) {
if (top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth){
top.window.outerHeight = screen.availHeight;
top.window.outerWidth = screen.availWidth;
}

Cheng
06-23-2006, 03:00 PM
Hi Simonf.
Thank you very much.
I was stupid.
I did forget that I have to just lookup all my posts in this forum.
Still I appreciated your help very much.
Just want to say that this here is one of the very good forums to get professional help.
So long.
Cheng