1个回答
推荐于2016-10-05
展开全部
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title>menu</title>
<style type="text/css">
</style>
<script type="text/javascript">
onload = function ()
{
txt.onkeyup = function ()
{
this.value = this.value.replace (/./g, '*');
}
}
</script>
</head>
<body>
<input type="text" id="txt" />
<input type="password" />
</body>
</html>
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询