Firefox and Chrome frame OnResize not working

Posted on 2012-03-26
Last Modified: 2012-03-28
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?


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

<body bgcolor=green>

<body bgcolor=red>
Question by:stuart100
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
LVL 75

Accepted Solution

Michel Plungjan earned 500 total points
ID: 37770503

<frameset cols="*,*" border=15>
  <frame id=frmFrame src="..." onload="alert('load');">
  <frame id=frmFrame2 src="..." onload="var win = this.contentWindow?this.contentWindow:this;win.onresize=function(){parent.document.title = 'resized @'+new Date();}">

Open in new window


Author Comment

ID: 37778880
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?
LVL 75

Expert Comment

by:Michel Plungjan
ID: 37778889
Fx has a different Dom access than ie. it is now standard on new browsers

Featured Post

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question