groups_nospam
5/2/2016 6:52:00 PM
In message <MPG.1c8ce5942382a21a98a322@nntp.lucent.com> - kaeli
<tiny_one@NOSPAM.comcast.net> writes:
:>
:>In article <112234j615m447d@corp.supernews.com>, groups_nospam@rcp.ca
:>enlightened us with...
:>>
:>> <Body bgcolor='black' Text='#dbdbdb' onblur='window.resizeTo(150,150)'
:>> onfocus='window.resizeTo(150,300)'>
:>>
:>
:>In case you weren't aware, Opera and Mozilla/Firefox have options to prevent
:>window resizing. Window resizing causes problems in tabbed browsers if I open
:>the document in a tab when you assumed I was opening it in its own window;
:>the code ends up resizing ALL my open tabs. Very irritating.
:>And ALL new windows open in tabs for me and anyone else who sets their
:>Firefox to do that. Opera may have a similar option.
:>
:>As to the problem, you may want to change window.resizeTo to self.resizeTo in
:>the onBlur. That's all I can think of.
:>
:>--
:>--
:>~kaeli~
Hi
Thanks for letting me know about the tabbed browser problems.
I've been doing some testing on a variety of systems and the only combination
that doesn't resize properly is XP Pro (sp2) with IE6 (sp2). The sp1 levels
work fine as do older versions of Windows & IE. Personally, I prefer Mozilla
anyway.
If I change window.resize to window.close and load it into an sp2 system, then
the window closes as expected. Seems to be something about sp2 that doesn't
like a window.resize being called by an onblur.
Here's my test page....
<!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN">
<Html>
<Head>
<Title>blur test</Title>
</Head>
<Body onblur="window.resizeTo(150,150)" onfocus="window.resizeTo(150,300)">
this is a test window
</Body>
</Html>
Thanks
Rob
www.rcp.ca