在index.html中输入密码时如何显示星号 [英] How to present asterisk when entering a password in index.html
本文介绍了在index.html中输入密码时如何显示星号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
使用该代码:
<!-- THIS IS WHERE IT ALL STARTS -->
<!DOCTYPE html>
<html>
<head><title>Bank application</title>
<link rel="stylesheet"
href="./css/styles.css"
type="text/css"/>
</head>
<body>
<table class="title">
<tr><th>Web Bank application</th></tr>
</table>
<br/>
<fieldset>
<legend>Login Page - please enter your Username and Password</legend>
<form action="loginPage">
Username: <input type="text" name="username"><br>
Password : <input type="text" name="password"><br>
<input type="submit" value="Login">
</form>
</fieldset>
<br/>
<br/>
<br/>
<br/>
<br/><br/><br/><br/><br/><br/>
</body></html>
用户输入用户名和密码
The user enters his username and password
输入密码时,如何在屏幕上显示星号(*)
.我不想显示myPassword
,而是要显示**********
,并保持字符串myPassword
的实际字符完好无损?
How can I present to the screen asterisks (*)
when I enter the password , e.g. instead of showning myPassword
, I want to present **********
, and keep the actual characters of the string myPassword
in tact ?
谢谢
推荐答案
<input type="password" name="password">
这篇关于在index.html中输入密码时如何显示星号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文