日期:2014-05-16 浏览次数:20350 次
实现点击链接后页面不刷新不跳转?
<script language="javascript" type="text/javascript">
? function deleteHrefs(){
??? var x = document.getElementsByTagName("a");
??? for(var i = 0;i<x.length;i++){
??????? x[i].href="javascript:void(0)";
??????? x[i].target="_self";??
??? }
? }
</script>
?