[Java help]

Newbie Spellweaver
Joined
Jul 20, 2008
Messages
84
Reaction score
0
Okay, so I need help using Java to create the equivalent of this javascript (which, btw, I wrote myself.)
Code:
<html>
<SCRIPT TYPE = "text/javascript">
<!--
var num = 0;
function annoy(){

num++;

while(num=num){
alert( "Pwned.");

}
}
   var retVal = prompt("Enter password : ", "");
  if (retVal == "admin" ) alert ("yeyboss")

else{
annoy();
}

//-->

</SCRIPT>
</html>

Basically, we all know the limitations of this code - whilst Javascript is disabled, this script can't run. However, though, there IS a DOM navigator.javaEnabled() check... but I don't know Java. So uh... yeah. Thanks in advance to anyone who can help :]
 
Back