Back

Explore Courses Blog Tutorials Interview Questions
0 votes
4 views
in Java by (13.1k points)
Can anyone help me how I can able to open a POPUP window twice using the same url and in the same time. Is it possible or not? Any help would be appreciated.

1 Answer

0 votes
by (26.7k points)

Basically, we need to change the window name for the different calls like this:

function popitup(url,windowName) {

       newwindow=window.open(url,windowName,'height=200,width=150');

       if (window.focus) {newwindow.focus()}

       return false;

     }

Also, make sure that the window name is unique.

I hope this will help.

Want to know more about Java? Prefer this tutorial on Learn Java.

Want to become a Java Expert? Join Java Training now!!

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
asked Feb 16, 2021 in Java by dante07 (13.1k points)
0 votes
1 answer

Browse Categories

...