Unoffical empeg BBS

Quick Links: Empeg FAQ | RioCar.Org | Hijack | BigDisk Builder | jEmplode | emphatic
Repairs: Repairs

Topic Options
#191263 - 01/12/2003 13:00 Resizing IE window when page is opened
Roger
carpal tunnel

Registered: 18/01/2000
Posts: 5683
Loc: London, UK
I've got a preferred size for my browser window (just large enough to view my links.xml file). Various sites force my browser window to full screen (as distinct from maximized). The worst offender is the configuration page for my router.

I'd like to fix it, and the easiest option would seem to be putting some JScript on my home page to resize the window to something sane each time I start IE.

Anyone got some simple code that'll do this?
_________________________
-- roger

Top
#191264 - 01/12/2003 13:42 Re: Resizing IE window when page is opened [Re: Roger]
ricin
veteran

Registered: 19/06/2000
Posts: 1495
Loc: US: CA
If you don't want anything fancy, and just want to set the outer window size, you can just use "window.resizeTo(W, H);" in the onLoad for <BODY>.
_________________________
Donato
MkII/080000565
MkIIa/010101253
ricin.us

Top
#191265 - 02/12/2003 02:26 Re: Resizing IE window when page is opened [Re: ricin]
Roger
carpal tunnel

Registered: 18/01/2000
Posts: 5683
Loc: London, UK
Thanks. I'll try that later.
_________________________
-- roger

Top
#191266 - 02/12/2003 18:19 Re: Resizing IE window when page is opened [Re: Roger]
tracerbullet
addict

Registered: 08/01/2002
Posts: 419
Loc: Minnesota
I *think* IE will remember the size of the last window open. I watch for the same, but in reverse. If I site opens a new window, and it's smaller than full screen, I make sure to close it first, and the full screen last.

There must be a better way... I like the suggestion above.

Top
#191267 - 06/01/2004 16:18 Re: Resizing IE window when page is opened [Re: ricin]
Roger
carpal tunnel

Registered: 18/01/2000
Posts: 5683
Loc: London, UK
Finally got around to trying that, and it works fine thanks. There was one minor wrinkle: since my homepage is generated from XML using XSLT, I had to hack on the .xsl file, but otherwise it works fine.

I might need to do something a bit cleverer to make sure that it works in browsers other than IE.
_________________________
-- roger

Top