Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
122
rated 0 times [  127] [ 5]  / answers: 1 / hits: 23673  / 13 Years ago, wed, july 27, 2011, 12:00:00

Is it possible to open pop-up windows BEHIND the current active screen using java script?



 var win= window.open(value,'_blank');


the above script opens pop windows in browser tab but I loss active page from my sight.



any suggestion?



Thanks in advance



Solution:



As per @Brian advised,



var win=window.open(value,null,height=400,width=600,status=yes,toolbar=no,scrollbars=yes,menubar=no,location=no);
win.blur();


Its works in IE,FireFox and safari but not in Chrome browser.



Can any one suggest how to open multiple popup boxes in IE browser? The above script will open only one pop up in IE.


More From » jquery

 Answers
4

You can add:



win.blur();


... to your code ...



Or



this.window.focus();

[#90978] Tuesday, July 26, 2011, 13 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
aden

Total Points: 369
Total Questions: 100
Total Answers: 83

Location: Australia
Member since Tue, Oct 19, 2021
3 Years ago
;