IT.COM

Controlling behaviour of the browser tabs

Spaceship Spaceship
Watch

gee

Established Member
Impact
10
hi

I have a tool (website) that I use every day. It contains different links to the sites. I click the links and browse them. It worked perfectly since last chrome update. I'd like to make it work no matter what version of the browser I use.

Here is how it worked.
1. First click on the link opens it in the new tab and makes it foreground
2. After reading I return to main site (not closing newly opened tab) and click on some other link. It opens it in that same tab and makes it foreground.
3. When I click middle button of the mouse on some links it opens them in new tab (every one of them opens in new tab) in the background.

Links have attribute target="blank"

As I said It worked very well 2 weeks ago. now after browser update it behaves diferently.

How to make it work again without installing older version of the software?
I tried couple add-ons for chrome but without success. Is it possible to make it in javasctipt? Anyone knows how to do it?
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
Hey, anyone knows how to do this thing? Any help appreciated.
 
0
•••
Double check the Chrome setup
Clear all cache and history
Restart your computer
 
0
•••
Thanks, but this won't help. Try this little code and see.

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Links</title>
</head>
<body>
<a href="https://www.google.com" target="blank">Google</a></td>
<a href="https://www.facebook.com" target="blank">Facebook</a></td>
<a href="https://www.twitter.com" target="blank">Twitter</a></td>
<a href="https://www.hi5.com" target="blank">Hi5</a></td>
<a href="https://www.namepros.com" target="blank">Namepros</a></td>
</body>
</html>


What I want to achieve is:

1. When I click on some link it opens in the new tab and makes it foreground (it works now)

2. When click on other link it opens in previously opened tab and makes it foreground. (doesn't work - it doesn't make it foreground)

3. When I click middle button of the mouse on some link it opens in new tab in the background. (now it works)

In short: clicking with left button on the link should overwrite tab (or open new tab if this is first click) and make it foreground. Clicking with middle button always opens new tab in background.

I suppose there is javascript code needed. But I can't do it, I don't know JS...
 
0
•••
Check your syntax.
td has to be a pair.
 
0
•••
Yeah, I copied the code from php file and forgot to delete some parts of code. But this is irrelevant here...
 
0
•••
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back