Link to home
Start Free TrialLog in
Avatar of stuart100
stuart100

asked on

Firefox and Chrome frame OnResize not working

I am trying to capture when a frame is resized.  This works perfect in IE but not at all in Firefox or Chrome.  Everything I have read says it should work, so I must be doing something wrong.  Can anyone please help?

Code:

test.html
<html>
<frameset cols="*,*" border=15>
  <frame id=frmFrame src="frame.html" onload="alert('load');">
  <frame id=frmFrame2 src="frame2.html" onresize="alert('resize');">
</frameset>
</html>

frame.html
<html>
<body bgcolor=green>
&nbsp;
</body>
</html>

frame2.html
<html>
<body bgcolor=red>
&nbsp;
</body>
</html>
ASKER CERTIFIED SOLUTION
Avatar of Michel Plungjan
Michel Plungjan
Flag of Denmark image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of stuart100
stuart100

ASKER

Thank you for the solution, I am giving you the points.

Can you explain though your code.  I think what is going on is that Firefox is not correctly registering the onresize event to the frame or using the wrong container?  Is this correct?
Fx has a different Dom access than ie. it is now standard on new browsers