Javascript 如何在新选项卡中而不是在同一选项卡中打开此tr链接?
如何在新选项卡中打开此项Javascript 如何在新选项卡中而不是在同一选项卡中打开此tr链接?,javascript,jquery,html,Javascript,Jquery,Html,如何在新选项卡中打开此项 <tr href="....."> 这是剧本 <script> $(document).ready(function(){ $('table tr').click(function(){ window.location = $(this).attr('href'); return false; }); }); </script> window.open$this.attr'href'
<tr href=".....">
这是剧本
<script>
$(document).ready(function(){
$('table tr').click(function(){
window.location = $(this).attr('href');
return false;
});
});
</script>
window.open$this.attr'href','u blank' 使用window.open
window.open($(this).attr('href'), '_blank')
添加第二个参数
.attr('href','_blank')
$document.readyfunction{
$'table tr'。单击函数{
var win=window.open'http://google.com/","空白",;
如果赢了{
//浏览器已允许将其打开
赢得焦点;
}否则{
//布罗斯韦尔把它堵住了
警告“请允许此站点的弹出窗口”;
}
}抱歉..window.openurl;遗忘:tr标签上的href?tr标签不是链接。太好了!请告诉我,我怎么能同时拥有手动光标?因为现在它在屏幕上显示箭头link@Xalloumokkelos-将css用于手动游标..类似于以下表格tr{cursor:pointer;}