<html>
<head>
<script type="text/javascript">
var t1=document.getElementById("txt1");
function isFocus(){
if(document.activeElement.id=='txt2'){
alert('txt2获得焦点');
}
else{
alert('txt2未获得焦点');
}
}
</script>
</head>
<input >
</html>

相关文章:

  • 2021-11-17
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-12
  • 2022-12-23
  • 2022-12-23
  • 2021-09-23
猜你喜欢
  • 2022-12-23
  • 2021-10-09
  • 2022-12-23
  • 2021-10-18
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案