Home >Web Front-end >JS Tutorial >Use XMLHTTP to pass parameters to execute on another page and refresh this page_javascript skills

Use XMLHTTP to pass parameters to execute on another page and refresh this page_javascript skills

WBOY
WBOYOriginal
2016-05-16 19:24:371017browse
Copy code The code is as follows:

function DelInfo( SaleBillID )
{
if( confirm (Do you really want to delete the current record?) )
{
var objXMLHTTP = new ActiveXObject(MICROSOFT.XMLHTTP);
objXMLHTTP.open(GET, Sale_ListInfo_Del.aspx?SaleBillID= SaleBillID, false);
objXMLHTTP.send();
var ReturnHtml = objXMLHTTP.ResponseText;
if( ReturnHtml == ) location.href( location.href );
else alert( ReturnHtml );
}
}

Delete

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn