6
Answers

open new window in the background

Abou Mohamad

Abou Mohamad

7y
194
1
Dear,
 
I want to open new windows (like a popup) but in the background and stay focusing on the parent window in all browsers.
 
can anyone help how to do this using jquery or javascript ...
 
Thanks
Answers (6)
2
Ankit Sharma

Ankit Sharma

NA 8.8k 140.9k 7y
Hi,
 
This is known as a "pop-under" .
 
Please refer to this link
 
https://www.sitepoint.com/community/t/popunder-that-works-well-for-all-browser/29741
 
Try and let me know if it works for you 
Accepted
0
Abou Mohamad

Abou Mohamad

NA 41 1.3k 7y
the 2 links are not working when deploying the website
 
i want to open a tab, when using "window.open('about:blank','_blank');" with localhost chrome open the new tab and no problem occur, but when deploying with iis or online, chrome popup blocker blocks the new tab from opening and show the mesage to allow popup for that website.
 
so i want to open the blank tab without fire the popup blocker in chrome,
 
thanks
 
0
Ankit Sharma

Ankit Sharma

NA 8.8k 140.9k 7y
Hi Abou,
 
Please refer to these links
 
https://stackoverflow.com/questions/7139103/open-page-in-new-window-without-popup-blocking
 
https://stackoverflow.com/questions/18885676/open-new-tab-without-popup-blocker-after-ajax-call-on-user-click 
0
Abou Mohamad

Abou Mohamad

NA 41 1.3k 7y
Dear Ankit,
 
the chrome browser blocks opening new "about:blank" tab
 
do you have any idea of how to open new tab in chrome from javascript without popup block?
 
thanks
0
Ankit Sharma

Ankit Sharma

NA 8.8k 140.9k 7y
Glad that i can be of your help
0
Abou Mohamad

Abou Mohamad

NA 41 1.3k 7y
thank you very much Dear Ankit it works well for me
 
I spent 3 days of searching and testing without any result
Thanks thanks thanks