Home  >  Article  >  Backend Development  >  onclick jumps to page processing without refreshing

onclick jumps to page processing without refreshing

WBOY
WBOYOriginal
2016-08-08 09:18:561180browse
<span>同求,一个事件onclick不刷新就跳转到页面处理。类似 于点赞,
asp文件,自己写了一个,不转
function zan(){
xmlHttp.open("post", "zan.asp?id=122", true);
}</span>
<span></span>
<span></span>
function deletea(){
<span></span>createXMLHttpRequest();
<span></span> var id=123123; 
<span></span> var url='<{:U("Project/test?name=1236")}>';
<span></span>  xmlHttp.open("GET",url,true);
<span></span>  xmlHttp.send(null);
<span></span> 
}

Copyright statement: This article is an original article by the blogger and may not be reproduced without the blogger's permission.

The above introduces the processing of onclick jumping to the page without refreshing, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.

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