使用该代码:
<!-- 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>
用户输入用户名和密码
当我输入密码时,如何在屏幕上显示星号 (*)
,例如而不是显示 myPassword
,我想显示 **********
,并保留字符串 myPassword
的实际字符完好无损的 ?
谢谢
最佳答案
<input type="password" name="password">
关于html - 如何在 index.html 中输入密码时显示星号,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11929138/