<a target="_blank"> onlick should open a new tab but the focus should be on current tab and not on the new tab and should work on chrome and mozzila

时间:2018-03-29 08:09:21

标签: javascript php jquery codeigniter

I've tried jquery window.open, but all focus will be shifted to new tab, and i dont want that, onclick should open new tab without shifting focus from current tab, also tried window.blur() and window.focus(), but doesn't fit my requirement.

1 个答案:

答案 0 :(得分:1)

标签行为由浏览器控制。

你无法通过javascript控制它。

能够控制这种行为将是一个严重的安全问题。