0

I want to stay on my current tab though. Is there anyway to not be redirected to that tab? I want the tab to open in the background.

When I do this command below, it opens a new tab and puts me into that url. I want to stay on my original page.

window.open('url/','_blank');
  • This question has been asked before http://stackoverflow.com/questions/4907843/open-a-url-in-a-new-tab-using-javascript – NewIsAlwaysBetter May 29 '15 at 23:24
  • That doesn't answer my question. It gets me redirected to the new tab. I want that tab to be running in the background. – user1676735 May 29 '15 at 23:25
  • possible duplicate of [Open a new tab in the background?](http://stackoverflow.com/questions/10812628/open-a-new-tab-in-the-background) – Richard Kho May 29 '15 at 23:26
  • @NewIsAlwaysBetter the question you linked is not asking the same thing as the OP. – Vince May 29 '15 at 23:26
  • @rkho I know how to open a new tab in the background. I want to stay on the same page, and not get redirected to the new tab that gets formed. – user1676735 May 29 '15 at 23:27
  • It depends on the user, you can't force a behaviour. If the user opens the link in a new tab, he will stay on the current page, if he follows the link directly, the link target will become the active tab – Aramil Rey May 29 '15 at 23:48

1 Answers1

1

This is not something you have control over.

That functionality is determined by the browser and only the browser currently.

Max Hudson
  • 9,961
  • 14
  • 57
  • 107