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>
</body>
</html>
frame2.html
<html>
<body bgcolor=red>
</body>
</html>
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>
</body>
</html>
frame2.html
<html>
<body bgcolor=red>
</body>
</html>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Fx has a different Dom access than ie. it is now standard on new browsers
ASKER
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?