'hasFocus()' Example : hasFocus « Javascript Methods « JavaScript Reference

'hasFocus()' Example

    
<html>
<body>
<button onclick="alert(document.hasFocus());">HasFocus</button>
</body>
</html>

    
      
      

Related examples in the same category

1.'hasFocus()' Syntax, Parameters and Note
2.'hasFocus()' is applied to