Skip to content Skip to sidebar Skip to footer

Html - How To Open A Link In The Background?

I am browsing some websites, I can click (for example in Chrome) on the link with the right button and choose OPEN IN THE NEW TAB -> the tab is opened, but in the background (th

Solution 1:

You must remove the link's target attribute:

  $('a[target="_blank"]').removeAttr('target');

Then it will stay in the same window without changing to the new one that opens by clicking the link.

Post a Comment for "Html - How To Open A Link In The Background?"