如何禁用浏览器中的“在新标签页中打开链接”?

问题描述:

如何在浏览器的右键菜单中禁用/删除在新标签页中打开链接选项?
如果使用javascript等无法做到这一点,那么有没有办法修改当用户点击此链接时会发生什么,例如,显示警告或阻止加载选项卡..?

How do I disable/remove the 'Open Link in New Tab' option in the right-click menu of the browser? If this is not possible with javascript etc then is there a way to modify what happens when the user clicks on this link, for example, display an alert or prevent the tab from loading..?

现在已经解决了主要问题,因为事实证明只需将href的查询字符串传递给ajax功能。

Have solved the main issue now, quite easily as it turned out just by passing the query string of the href to an ajax function.

我可能应该在我的问题中解释我想要的只是作为临时措施。无论如何,感谢所有评论。

I probably should have explained in my question that what I wanted was intended only as a temporary measure. Anyway thanks for all the comments.