what is the best approach to using javascript to asking input username & password in a single prompt window?(multiple input field)
what is the best approach to using javascript to asking input username & password
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There is a
prompt()function that you can use. You can also use something like jQuery UI to create a more fancy dialog. Make sure that it’s the backend server that’s checking it using AJAX though. Don’t store the password in the Javascript as it will be trivial just checking the source code to circumvent it.