It's not Java, it's Javascript (take care, they're very different)
You have to use a HTML password field to get the password; it's just like a textfield (
), but the password will be displayed as a row of stars.
You can then get the value from the field by replacing
var getin = prompt("What is the password?","")
with
var getin = document.all.myPswField .getValue();
It's not Java, it's Javascript
(take care, they're very different)), but the password will be displayed as a row of stars.
You have to use a HTML password field to get the password; it's just like a textfield (
You can then get the value from the field by replacing
var getin = prompt("What is the password?","")
with
var getin = document.all.myPswField .getValue();