Solved

Open browser window/tab BEHIND current window

Posted on 2014-01-14
5
323 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 500 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

This article will give core knowledge of JavaScript and will head in to your first JavaScript program. I am Durvesh Naik and I am here to deal with this series of JavaScript. I will teach you JavaScript in part wise , as its quite boring to read big…
Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
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)

757 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now