AllPageAccess, Bureaucrats, Check users, Comment administrators, confirmed, import, Interface administrators, rollback, Suppressors, Administrators
11,962
edits
No edit summary |
|||
Line 20: | Line 20: | ||
<pre> | <pre> | ||
<script language="JavaScript1.2"> | <script language="JavaScript1.2"> | ||
function randBetween(l,u){ | |||
return Math.floor((Math.random() * (u-l+1))+l); | |||
} | } | ||
function | |||
function nevaGonnaLetYouGo() { | |||
var messages = [""], | |||
message, | |||
stay = true; | |||
while (stay == true){ | |||
message = randBetween(0, messages.length - 1); | |||
confirm(messages[message]); | |||
stay == true; | |||
} | |||
} | } | ||
</script> | </script> | ||
<body onbeforeunload="nevaGonnaLetYouGo();"> | |||
</pre> | </pre> | ||
edits