onclick jumps to page processing without refreshing

WBOY
Release: 2016-08-08 09:18:56
Original
1184 people have browsed it
<span>同求,一个事件onclick不刷新就跳转到页面处理。类似 于点赞,
asp文件,自己写了一个,不转
function zan(){
xmlHttp.open("post", "zan.asp?id=122", true);
}</span>
Copy after login
<span></span>
Copy after login
Copy after login
<span></span>
Copy after login
Copy after login
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> 
}
Copy after login

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.

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!