<script type="text/javascript">
//alert($('.ms-listviewtable tbody tr td').html());
$('.ms-listviewtable tbody tr td').each(function() {
//debugger;
var href = $(this).find('a');
if(href.context.innerText =='复制')
{
var hrefValue=href.attr('href');
href.attr('href','javascript:SetCopyClick("'+hrefValue+'")');
//alert(href.attr('href'));
}
});
function SetCopyClick(hrefValue)
{
window.open(hrefValue);
}
</script>
---------------------------------
关闭窗口无提示方法。
<html>
<head>
<title>New Page 1</title>
</head>
<body>
<script language="JavaScript">
<!--
function CloseWindow()
{
window.opener=null;
window.open('','_self');
window.close();
}
//-->
</script>
<input type=button value=关闭 οnclick="CloseWindow()">
</body>
</html>