Take the 2-minute tour ×

I have such situation. I try to open a window with window.open function new window was opened in a front of main window, how can i open it in background of main window, without focus on new. Is it possible to do such thing?

share|improve this question

marked as duplicate by Curt, mgibsonbr, Kami, Richard, middaparka Feb 28 '13 at 11:54


3 Answers 3

up vote 4 down vote accepted

What you seek is called a "pop-under" window

However, it's not a guarantee as user browser settings may override this behavior, especially pop-up blockers.

share|improve this answer

Try using the Following

window.open("http://localhost/123", '_blank');
share|improve this answer
DOES NOT WORK.! –  Muhammad Umer Apr 17 at 16:43

No you cant open window behind the main window. if you are using window.open() then it will be top of the main window. that's how the pop up windows works.
alternatively you can do this

share|improve this answer
Ok, maybe there are some other ways to open new window in background, without window.open() function –  Anton Sementsov Feb 28 '13 at 10:59
