Hyperlink that opens in a new tab but retains focus on the current / parent page

How would you format the HTML A tag (on click) to force any browser to open it in a new tag while keeping the focus on the current / parent page?

I know in Firefox there is an option that says "When I open a link in a new tab, immediately switch to a new tab," but I want it to be the opposite. When a new tab is open, don't switch. Regardless of whether I check or uncheck this checkbox, it still behaves as I described above.

Has anyone encountered this before?

Cheers and thanks for your responses, Lasker

+2


source to share


1 answer


This is a browser setting and you cannot override this from your code, and the main thing is



Don't do this .

+4


source







All Articles