Link to home
Start Free TrialLog in
Avatar of dgelinas
dgelinasFlag for United States of America

asked on

How can I disable Event Detection?

I have an iframe that has mouse event detection on the body.. when that iframe opens up another iframe on top of itself I'd like for the parent iframe to have its event detection disabled.  If I put a return in the function that is called upon the particular event detection the code is still slowed down a bit.. If I could just disable it all completely would be great.  Thanks!
ASKER CERTIFIED SOLUTION
Avatar of JakobA
JakobA

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 wfRGB
wfRGB

Something like this might work for you.

<BODY onclick="myPopup();document.body.onclick=function(){};">
or
<BODY onclick="myPopup();document.body.onclick=null;">