IE6 vs. IE7 onresize() behavior

2 views
Skip to first unread message

Trip

unread,
Nov 25, 2009, 5:28:44 PM11/25/09
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
I'm having compatibility issues with this code I'm working on with
IE7.

First off, in IE6, when a user loads the webpage, "OnLoad" is called
but not "OnResize". OnResize is only called when the window size has
been changed.

However, in IE7, OnResize is called immediately after OnLoad and is
seems to be constantly called.

Here's a snippet of my code:

<body id="body" enableviewstate="true" onload="setTimeout('onLoad()',
50);" onresize="alert('hi');onResize()"
onmousedown="RememberMouseButtons(); HideTooltip();"
onmouseup="ResetMouseButtons();" onmousemove="RememberMouseButtons
();">

Any reason why the behavior between ie6 and ie7 are different?

JH Lee

unread,
Nov 26, 2009, 1:50:29 AM11/26/09
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
Hi,

I am humbly recommending you to not worry about ie6, seriously there
is a like boom between developers to kill ie6.

The reason is that obviously the way those two browsers handling the
script and tags are different. You might find a slight different on
firefox, and safari.

Also this can depend on the OS that you use. Sometimes firefox on
linux will display a certain website differently, when compare it on
firefox on Windows.
Reply all
Reply to author
Forward
0 new messages