Jquery: Change window in focus in the browser when clicking on link

1

Hello, I wonder if you can do the following: When I click on a link in a website, if I already have it open, this tab becomes the focus, if not, open a new tab normally. Thank you!

    
asked by anonymous 14.06.2017 / 19:03

1 answer

2

This has been possible in the past, in very specific situations. But for security reasons, today's browsers prevent it.

If you could shift focus to another flap, you would probably have full control over it. This would be the nightmare of anyone having to secure the security of an online store site or Internet banking.

You can search for solutions in Stack Overflow in English, but I guarantee beforehand that:

  • You will not find an answer that works across browsers;
  • Probably what you find is already obsolete and will no longer work.

If you have the need to change drastically what user should view at a given time, then probably changing the tab that the user accesses will not meet their need. It's better to think of other forms of presentation for your application.

    
14.06.2017 / 19:30