Reputation: 415
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 do I achieve the automatically window.focus with modern browsers, since alert is very important in my application because its a stock alert.
Upvotes: 1
Views: 718
Reputation: 190952
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.
Upvotes: 1