I spent hundreds of hours writing an HTML5 application.
This application deals with multiple popups and I suddenly ran into a problem when managing them.
My main goal would be bring a blurred popup window to front by focusing it.
I am wondering if this is possible in JavaScript.
If not, could I use java applet in order to gain more functionality on my popup windows.
Could I perhaps embed Google V8’s engine in order to render my existing HTML5 code in this application?
-
1What do you mean by "popup"? A new browser window? An alert()? Some framework's Popup widget?P Varga– P Varga2012年01月02日 00:49:51 +00:00Commented Jan 2, 2012 at 0:49
-
Are the popups in different tabs?grc– grc2012年01月02日 00:51:54 +00:00Commented Jan 2, 2012 at 0:51
-
HTML5 Application that uses window.open? Really?epascarello– epascarello2012年01月02日 01:25:34 +00:00Commented Jan 2, 2012 at 1:25
1 Answer 1
when you open a window you create a reference to it. You can then use that reference to call focus() on.
var foo = window.open( /*params*/ );
foo.focus();