<html>
<head>
<script type="text/javascript">
function setFocus()
  {
  document.getElementById('password1').focus()
  }
function loseFocus()
  {
  document.getElementById('password1').blur()
  }
</script>
</head>
<body>
 
<form>
<input type="password"  />
<input type="button" onclick="setFocus()" value="Set focus" />
<input type="button" onclick="loseFocus()" value="Lose focus" />
</form>
 
</body>
</html>

  

相关文章:

  • 2021-12-13
  • 2022-12-23
  • 2022-12-23
  • 2021-12-19
  • 2022-12-23
  • 2021-12-19
  • 2022-12-23
  • 2021-12-19
猜你喜欢
  • 2021-10-17
  • 2022-12-23
  • 2021-12-19
  • 2021-10-11
  • 2022-12-23
  • 2021-10-08
相关资源
相似解决方案