JavaScript Reference/Javascript Methods/hasFocus — различия между версиями
Admin (обсуждение | вклад) м (1 версия) |
|
(нет различий)
| |
Текущая версия на 08:22, 26 мая 2010
"hasFocus()" Example
<html>
<body>
<button onclick="alert(document.hasFocus());">HasFocus</button>
</body>
</html>
"hasFocus()" is applied to
+----------------+--------------------------------------------------------------+
| Applied_To |document |
+----------------+--------------------------------------------------------------+
"hasFocus()" Syntax, Parameters and Note
Note:
Does the document have focus.
Returns true or false.
Syntax:
document.hasFocus()