Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[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
Top