Ai biết đoạn code đơn giản này giúp em vơi

rongbay

Hero
Joined
May 17, 2011
Messages
1,049
Reactions
493
MR
0.000
<head>
<script type="text/JavaScript">
<!--
function needRefresh() {

if (document.all){

document.body.onmousedown=new Function("if (event.button==1||event.button==2)

window.location.reload();");

}

}
// -->
</script>
</head>
<body onload="JavaScript:needRefresh()">



hello
</body>
 
code jquery này :|

click vị trí bất kì thì refresh :binhsua122:

<script>
$('document').ready(function(){
$('body').on('click', function(){
window.location.reload();
});
});
</script>
 

Announcements

Today's birthdays

Forum statistics

Threads
426,726
Messages
7,183,866
Members
179,087
Latest member
hieusor

Most viewed of week

Most discussed of week

Most viewed of week

Most discussed of week

Back
Top Bottom