Posted September 23, 2021
The goal is to open new tab with GOG site but I would like to stay focused on the tab with the button - just like the way "Open Link in New Tab" option from right-click menu works.
At this moment clicking the button creates new tab and switches the focus to it - how to prevent that?
My code is (I've replaced < > with [ ]):
[button onclick="var tab=window.open('https://www.gog.com','_blank'); tab.blur();"]GOG[/button]
The JavaScript option I've googled about (.blur) does not seem to work on my Firefox browser.
At this moment clicking the button creates new tab and switches the focus to it - how to prevent that?
My code is (I've replaced < > with [ ]):
[button onclick="var tab=window.open('https://www.gog.com','_blank'); tab.blur();"]GOG[/button]
The JavaScript option I've googled about (.blur) does not seem to work on my Firefox browser.
Post edited September 23, 2021 by Lexor
No posts in this topic were marked as the solution yet. If you can help, add your reply