Solved

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

Posted on 2006-06-22
2
374 Views
Last Modified: 2012-06-27
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.
0
Comment
Question by:donaldnewlands
2 Comments
 
LVL 36

Accepted Solution

by:
Zyloch earned 125 total points
ID: 16964402
Hi donaldnewlands,

Why not rid yourself of the self.close()? Wouldn't the self.focus() on the onload automatically bring the already open window back to the front again after a new video loads?

Regards,
Ted
0
 

Author Comment

by:donaldnewlands
ID: 16964502
Hey, thanks! I don't know why I didn't think of that myself.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
API Soap Calls 4 90
Email address on web page 4 43
Example unit tests with AngularJS 3 40
Where can I ask about my ASP.NET MVC project? 6 23
"In order to have an organized way for empathy mapping, we rely on a psychological model and trying to model it in a simple way, so we will split the board to three section for each persona and a scenario and try to see what those personas would Do,…
Developer portfolios can be a bit of an enigma—how do you present yourself to employers without burying them in lines of code?  A modern portfolio is more than just work samples, it’s also a statement of how you work.
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.

867 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now