Link to home
Start Free TrialLog in
Avatar of donaldnewlands
donaldnewlands

asked on

Using onBlur="self.close()". Firefox waits till you deselect the window, IE closes even if you click in the window.

My website has some links that trigger popups with short flash videos. I had a problem with users clicking off of the popup back to the main site but when they clicked on the next link they wouldn't see a popup because it was still open behind the main site window. I found that I could use <body onBlur="self.close()" onLoad="self.focus()"> to make the popup go away when you clicked back to the main site, but IE and Firefox don't react the same way.

Firefox allows me to interact with the flash in the window. I can click pause, play or move the timeline slider. When I am done with the video and click back on the main site window, the popup closes automatically.

IE closes the popup the moment the mouse is clicked, even if I'm trying to click on the pause button. If a user is on a slow connection the video may not start to play immediately so users will try to click on the play button which causes the window to vanish.

I'm looking for either a way to make IE handle the popups the same as firefox handles it now, or find a different solution to the original problem of users loosing the video popup behind the main window. Thanks.
ASKER CERTIFIED SOLUTION
Avatar of Zyloch
Zyloch
Flag of United States of America 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 donaldnewlands
donaldnewlands

ASKER

Hey, thanks! I don't know why I didn't think of that myself.