jquery – 当链接在新选项卡中打开时,如何保持当前窗口?

用户点击链接
<a href="http://www.stackoverflow.com" target="_blank">click</a>

有没有办法留在当前窗口而不是去选项卡?

解决方法

Is there a way to stay on the current window instead of going to the tab [when the link has target="_blank"] ?

只有当你这样做这样的事情…

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

相关文章

页面搜索关键词突出 // 页面搜索关键词突出 $(function () {...
jQuery实时显示日期、时间 html: &lt;span id=&quot...
jQuery 添加水印 &lt;script src=&quot;../../../.....
中文:Sys.WebForms.PageRequestManagerParserErrorExceptio...
1. 用Response.Write方法 代码如下: Response.Write(&q...
Jquery实现按钮点击遮罩加载,处理完后恢复 思路: 1.点击按...