Forum Moderators: open

Message Too Old, No Replies

prevent window resizing in IE

been bugging me for years

         

PatrickDeese

4:58 pm on Aug 23, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I like to have two sizes for my browser windows - maximized and 800x600 - but for some reason my "small" window usually ends up full screen proportions eventually. I rarely resize a window manually, except to shrink it back down to 800x600, yet eventually the window always ends up at "near" maximized.

I always end up closing all my browsers, resizing one to the "right" size, then close it so that IE "remembers" the last size, and that works for a while.

What am I doing wrong - is there a registry hack I can use or something?

claus

5:10 pm on Aug 23, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



As to what causes the problem, it's those big time annoying webmasters that think their webpage is allowed to change the size of your browser just because they can. I simply hate it.

As to the solution, i do it manually but i would really like to hear any advice for a permanent solution... is there a "window.resize-blocker" just like the popup-blockers that's around?

/claus

MonkeeSage

5:36 pm on Aug 23, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



claus:

http*//www.popupcop.com/releasenotes.html

Never tried it but the claim to be able to stop JS window resizing.

A way to do it just from IE w/o any extra software would be to save a bookmarklet that sets you window back to the size you want it, e.g.,

javascript:window.resizeTo(800,600);

But of course you have to run this every time your window is resized. You could add a shortcut [dogboy.org] for the bookmarklet named "r" and just type "r" in the url bar every time the window size is changed.

Jordan

PatrickDeese

6:45 pm on Aug 23, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



That's a great idea. What I was doing before was I took a screen shot, resized it to ~800x600, clipped out the ie toolbar and status stuff and then loaded the image in IE anytime I wanted to get the correct "footprint".

The JS seems like a much less kludgy solution.

You'd think there'd be a window size preference setting...

sonjay

7:37 pm on Aug 23, 2003 (gmt 0)

10+ Year Member



Yet another reason to consider switching browsers. Mozilla has a preference option to allow (or disallow) scripts to move or re-size windows.

PatrickDeese

8:49 pm on Aug 23, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Ah. But I use IE so I can see what 94.3% of my websites' visitors experience.

I use Mozilla when I want to defeat some stupid "full screen mode" JS website (retch). I use Mozilla for compliance checks, also in most cases Mozilla makes interprets HTML similarly to Mac's IE and Safari. (in otherwise in doesn't interpret IE specific HTML)

claus

9:42 pm on Aug 23, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



MonkeeSage:
- thanks for the tip, that does it. I've been using quicksearch for years, never thought about adding a bit of JS, but that tip just increased the value of the tool even more - great :) :)