Link to home
Start Free TrialLog in
Avatar of scottarius
scottarius

asked on

onresize with frames

I have a document with 3 frames, and I need to run a function when the user resizes the window.  

Here is how I am handling the event:

<SCRIPT FOR="window" EVENT="onresize" LANGUAGE="JavaScript">
      doFunc();
</SCRIPT>

The problem is, when the window is resized, the function runs 3 times, once for each frame.  How can I get it to only run once?
Avatar of venkateshwarr
venkateshwarr

Where did you keep this code?
In a frame or in html file containing frameset?
Avatar of scottarius

ASKER

it's in the head of the html file with the frameset.
Why dont you move this code to one of the html file inside a frame...
ASKER CERTIFIED SOLUTION
Avatar of devic
devic
Flag of Germany 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
perfect! thanks devic.

i was thinking i might have to set a timeout but wasn't sure the best way to go about it.