JavaScript Sayfayı Otomatik Yenileme Kodu

Shiva

Admin
Joined
Jul 31, 2019
Topics
522
Messages
4,091
Solutions
194
Reaction score
13,963
Location
Berlin
Aşağıdaki kod ile web sayfası 5 saniyede bir otomatik olarak yenilenmektedir.


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<!doctype html>
<html>
<head>
<title>www.realitycheats.com</title>
<meta charset="utf-8">
</head>
<body>
<script>
// DOM yüklenmesini bekle
document.addEventListener("DOMContentLoaded", function(event) {

window.setTimeout(function(){
document.location.reload(true);
}, 5000);

});
</script>
</body>
</html>
 

Top