Hi,

>> Maybe we can disallow the "visibilitychange" event to produce any dialogs
>> or anything else that could give focus?
> 
> window.onvisibilitychange = function(e) {
>   setTimeout(function() {
>     alert("Worked around!");
>   }, 0);
> };
> 
> Or would browsers be able to track that the code was initially
> triggered from visibilitychange? (including when programmatically
> creating and dispatching another DOM events, instead of or in addition
> to the setTimeout?)

You don't have to track where call was coming from:

1. you just don't let the alert take the focus in windows that are not
visible or
2. you don't show it up at all until the visibility of the window
changes back to visible.

-- 
frank hellenkamp | interface designer
solmsstraße 7 | 10961 berlin

+49.30.49 78 20 70 | tel
+49.176.32 13 88 89 | mbl
+49.3212.100 35 22 | fax
jo...@depagecms.net

http://depage.net | bureau
http://depagecms.net | content management
http://immerdasgleiche.de | read
http://everydayisexactlythesame.net | see

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to