function DelInfo( SaleBillID )
{
if( confirm(是否真的要刪除當前記錄?) )
{
var objXMLHTTP = new ActiveXObject(MICROSOFT.XMLHTTP);
objXMLHTTP.open(GET, Sale_ListInfo_Del.ASP?SaleBillID=+ SaleBillID, false);
objXMLHTTP.send();
var ReturnHtml = objXMLHTTP.ResponseText;
if( ReturnHtml == ) location.href( location.href );
else alert( ReturnHtml );
}
}
<a href='Javascript:DelInfo(164)'> 刪除</a>