密码脚本 [英] Script for password

查看:70
本文介绍了密码脚本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个< form>< / form>在我的网页上设置密码。我想这样做只有一个密码可以工作。我怎么能在javascript中做到这一点??

I have a <form></form> set up on my web page for passwords. i want to make it so only one password would work. how can i do that in javascript??

推荐答案


我有一个< form>< / form>在我的网页上设置密码。我想这样做只有一个密码可以工作。我怎么能在javascript中做到这一点?
I have a <form></form> set up on my web page for passwords. i want to make it so only one password would work. how can i do that in javascript??



你想让密码安全吗?如果是这样,javascript就不可能了。您基本上可以使用javascript来检查验证,如果您让用户验证密码,您可以使用javascript检查两个输入是否相同。

Do you want to make the password secure? If so javascript isn''t the way to go. You would basically use javascript to check for validation and if you have the user verify the password you can use javascript to check that both inputs are the same.


它需要是安全的,我有两个页面有一个密码框,我只是想这样,所以只有一个密码在页面上工作,当他们输入密码时,它将转到另一个页面。
It dosent need to be secure, i have 2 pages that have a password box, and i just want to make it so only one password works on the page and when they type it in it will go to another page.



它需要是安全的,我有2个页面有一个密码框,我只是想这样做,所以只有一个密码在页面上工作,当他们输入密码时转到另一页。
It dosent need to be secure, i have 2 pages that have a password box, and i just want to make it so only one password works on the page and when they type it in it will go to another page.



所以当你输入密码时,如果它是正确的你想要它去另一个页面吗?

So when you type the password in if it is correct you want it to go to another page?


这篇关于密码脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆