没问题呀:
<script>
function delconfirm(strhref,strname)
{
var truthBeTold = window.confirm("确定要删除" + strname + "吗?");
if (truthBeTold)
{
     
   window.location.href=strhref;
   //alert(strhref);
 }
 }
</script>
<body>
<input type=button value=click onclick="delconfirm('http://www.csdn.net','csdn')">
</body>