answersLogoWhite

0


Best Answer

Use the length property of string in javascript.

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you check length of password using javascript?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you write a password script using JavaScript in PHP with a form?

This question is too broad, be more specific.


How do you write a password validation using javaScript?

Although this password script would get you hacked in the blink of an eye, you could use <html> <head> <script type="text/javascript"> function PassCheck() { var pass=12345 var check=prompt("Enter Pass",""); if (pass==check) { document.write("Correct!") } else { document.write("Incorrect!") } } </script> </head> <body> <button type="button" onclick="PassCheck()">Enter Password</button> </body> </html>


How do you enable javascript in your web browser using IE and Mozilla Firefox?

There isn't a way to enable or disable JavaScript in IE8 or IE7. In Firefox, you go to Tools > Options > Content > and check the box that says Enable JavaScript then click OK. Other IE's might have javascript, I don't know how to enable javascript for IE, this might be hard to know...


How do you do a username and password login program using C-language?

For a username, just get the username from the standard input using scanf and check whether this username matches with the username stored. If it doesn't match, then the username is wrong.For a password, get each character using getch(). Print a * for each character obtained. Now check this password with the stored password. If these don't match, then the password is wrong.


How do you add a login prompt to my page before the page even loads?

The effect you're looking for requires the use of HTTPAuth, not JavaScript. You can accomplish this using a password-protected directory, as well.


What are the benefits of using password managers?

There are a few potential benefits in using password managers. They are easy to use in most software and require no server modification. Passwords are usually short in length and easy to remember in these systems.


Can you get ipaddress by using javascript?

No, use asp


How do you show the text box output in the browser using Ajax code?

You can directly do that in the JavaScript. Just get the value of the input type in JavaScript using id and show it using .innerHTML.


What is logic behind Remember Password in javaScript?

It saves time and also user doesn't have to write the password somewhere or memorize it. Though for security reasons it is a bad practice. Putting password on a browser's password list or storing it inside local computer using cookies is a bad idea. Security is jeopardized if other users or hackers gain access to those files.


What are the benefits of using JavaScript for forms?

JavaScript can help with dynamic retrieval of form data using AJAX and also the data can be checked and validated before sending it to the server. Apart from that you could add some animation and change views using javascript and jquery.


Why does it say invalid zip code length when you try to make an account on photobucket?

try using a different password


How do you create a login system using PHP?

Here are the stepsCreate a register form using html form elements. Keep them minimum like username, password, confirm password, email and 2-3 more fieldsOn Submit button use validation to check form input possibly using javascript or php side validationSave the details from form submission in databaseLogin will check for username/email and passwordSessions will store login detailsI am providing a few links which will serve good purpose to learn the login system. Remember to do the simple things first then move onto more complex scenarios.