I'm trying to protect my script with a password. I want to launch a "prompt function " before starting my script to ask the user a password.
I have tried this :
doRun = true;
var champLicense = "trial";
var goodCode = "aftershine";
check = prompt("Rentrer votre code",champLicense,"Bienvenue");
My only problem : when I hit "cancel", the "prompt window" does not disappear because I'm in the "else" answer : do you know how I can do??
And another question : i did not find anything on the web to protect my script with an encode password or something secured : have you got any idea where I can find some information?
Thanks in advance! (sorry for my bad english!)