Forum Moderators: open

Message Too Old, No Replies

Javascript Problem (open maximized window)

         

Yoeri

3:37 pm on Jul 8, 2003 (gmt 0)

10+ Year Member



We have a IE only web application that wants to open a maximized window (not kiosk mode).

I found a piece of javascript that added the following features to the window.open method:

--
resizable=1,toolbar=1,location=1,directories=1,addressbar=1,
scrollbars=1,status=1,menubar=1,top=0,left=0,
screenX=' + window.screenLeft + ',
screenY=' + window.screenTop + ',
width=' + window.availWidth + ',height=' + window.availHeight;
--

With these features, the window opens perfectly maximized.

The problem is that I don't want all the features, so I want to turn off the toolbar, status, menubar etc.

When I do that, the size is not good anymore (approx 10px to wide and to high) ... seems that everything must be 'on' ...

is there a workaround for this (perfect maximized window with no features enabled)?

I don't want to begin using availHeight - xx px because the height of a window can differ according to the visual style you are using in XP...

I am using IE 6 SP1 on Windows XP

Thanks

Yoeri

sitebasics

3:41 pm on Jul 8, 2003 (gmt 0)

10+ Year Member



When you say "turn off", do you mean physically removing the settings, or setting them to 0?
Have you tried changing the 1's to 0's for the features you don't want?

Yoeri

3:43 pm on Jul 8, 2003 (gmt 0)

10+ Year Member



I mean setting the '1' to '0'.

When you remove one of the features or when you set a feature to '0', the window isn't maximized anymore ...

korkus2000

6:21 pm on Jul 8, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



By kiosk I assume you mean fullscreen? AFIAK you will have to do some guesstimation on the browser contianer. This may be a problem for different OS though. I believe XPs browser container is larger than win2k.