Open a new tab with javascript but stay on current tab

You can’t open tabs in the background using javascript because this is set in the user’s preferences in about:config, which you have no control over. The setting is:

browser.tabs.loadDivertedInBackground=true

Leave a Comment