Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Open browser window/tab BEHIND current window

Posted on 2014-01-14
5
Medium Priority
?
336 Views
Last Modified: 2014-01-15
I guess I am asking for a pop-under solution.  I tried to do

w=window.open('blah')
w.blur()
window.focus()

but that doesn't work at all.

Any suggestions.
0
Comment
Question by:jglazer63
  • 2
  • 2
5 Comments
 
LVL 44

Expert Comment

by:Rainer Jeschor
ID: 39780760
Hi,
which OS and which browser have you tried?
How do you run this code? onload or onclick event?
Thanks.
Rainer
0
 
LVL 58

Expert Comment

by:Gary
ID: 39780786
There is no reliable cross browser method of doing this, you may get a bit of luck with this
https://github.com/tuki/js-popunder

But not in Chrome,
0
 

Author Comment

by:jglazer63
ID: 39781186
OS and Browser doesn't matter.  I need a global solution.  I have a feeling its not possible.
0
 
LVL 58

Accepted Solution

by:
Gary earned 2000 total points
ID: 39781190
There is no global solution, it's a bad practise to start with.
0
 

Author Closing Comment

by:jglazer63
ID: 39782133
Came to the same conclusion.  Thanks
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses how to create an extensible mechanism for linked drop downs.
Without even knowing it, most of us are using web applications on a daily basis.  In fact, Gmail and Yahoo email, Twitter, Facebook, and eBay are used by most of us daily—and they are web applications. We generally confuse these web applications to…
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
Suggested Courses

885 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question