PDA

View Full Version : Maximise New Window


asian42die4
10-27-2002, 06:47 PM
I am creating a webpage and i want it so that when you click on a link it is already maximised. Is this possible in anyway?

joh6nn
10-27-2002, 08:32 PM
the best you can do is make the window as big as the screen. you can't maximize it.

bacterozoid
10-28-2002, 12:50 AM
Possibly something like this?


<script language=JavaScript>
<!--
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;
}
}
//-->
</script>


I believe that maxamizes the browser window.

joh6nn
10-28-2002, 01:14 AM
no, like i said, that just makes it as big as the screen

bacterozoid
10-28-2002, 01:52 AM
Erm hmm, can we define MAXAMIZE and making something as big as the screen? I'm a bit lost as to where you're coming from.

Eternity Angel
10-28-2002, 02:12 AM
I had this same problem, and I could NOT make it maximized, so, instead, I made it LOOK maximized with this:


window.moveTo(-5,-5);
window.resizeTo((screen.availWidth+10),(screen.availHeight+10));


:-)

bacterozoid
10-28-2002, 02:33 AM
Ah, I see the difference now. Well, I would have to agree with joh6nn then. I'll look in my book for a way, but he is likely right.

--Yup, I looked online, through my big JavaScript book, tried about 10 different methods, none of them which actually maximized the window.

asian42die4
10-28-2002, 04:23 AM
thanks for ya help guys~!