...

View Full Version : Maximizing with window.open()



SpaceMonkey4969
06-10-2003, 10:12 PM
Hello,

I really need some help here.


I have a menu where a bunch of hyperlinks are used to open different windows. An example is this:
window.open("OTC.asp", '','location=yes,menubar=yes,toolbar=yes,directories=yes,scrollbars=yes,status=yes,width=1035,height =750,resizable=yes');

What i'm needing is a way to open these windows so they are MAXIMIZED. I'm using IE 6.

someone please help, Thanks in advance.

A1ien51
06-10-2003, 10:53 PM
http://www10.brinkster.com/A1ien51/scripts/PopUpWinGenV3.htm

SpaceMonkey4969
06-10-2003, 11:07 PM
I guess I should add that I need to have the Toolbars, menubars, address bars and everything displayed with it when this window gets maximized.

Thanks

swmr
06-11-2003, 02:21 AM
This might work for you:


<html><head>

<script type="text/javascript">
function maxPop(){
brwsr=window.open("OTC.asp",'','location=yes,menubar=yes,toolbar=yes,directories=yes,scrollbars=yes,status=yes,width=1035,heigh t=750,resizable=yes');
if (brwsr.window.screen){
var w=screen.availWidth;
var h=screen.availHeight;
brwsr.window.resizeTo(w,h);
brwsr.window.moveTo(0,0)}
}
</script>

</head><body>
<button onclick="maxPop()">open</button>
</body></html>

SRC: Working with Windows: Manipulating Windows (http://www.webreference.com/js/tutorial1/manipulate.html)

Edit>>> code above is rendered with spaces that need to be eliminated



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum