Skip to content Skip to sidebar Skip to footer

Alert() Method Not Resulting In Window.focus On Modern Browsers

Whenever I used to call javascript alert method, it resulted in automatically focus to the window it was called in, but in modern browsers like Firefox 11 this is not the case. How

Solution 1:

I'm afraid that this would not be possible without breaking out of the sandbox which would be nearly impossible. You are at the mercy of the web browsers and the operating system.

There are some notification APIs out for HTML5, but not currently implemented.

Post a Comment for "Alert() Method Not Resulting In Window.focus On Modern Browsers"