使用该代码:
<!-- 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>
Run Code Online (Sandbox Code Playgroud)
用户输入他的用户名和密码

(*)当我输入密码时,如何在屏幕上显示星号,例如,而不是显示myPassword,我想呈现**********,并保持字符串的实际字符myPassword?
谢谢
Eri*_*Yin 11
<input type="password" name="password">