JavaScript Reference/Event Handlers Reference/onFocusIn
Содержание
"onFocusIn" Example
<html>
<head>
<script language="JavaScript">
function function1() {
alert("<a> element will receive focus upon accepting this message")
}
</script>
</head>
<body>
<a id="myL"
href="http://www.wbex.ru/"
target=_blank
onfocusin="function1()">
www.wbex.ru
</a>
</body>
</html>
"onFocusIn" is applied to
+----------------+--------------------------------------------------------------+
| Applied_To |<a> <address> |
| |<applet> <area> |
| |<b> <bdo> |
| |<big> <blockquote> |
| |<body> <button> |
| |<caption> <center> |
| |<cite> <code> |
| |<custom> <dd> |
| |<dfn> <dir> |
| |<div> <dl> |
| |document <dt> |
| |<em> <embed> |
| |<fieldset> <font> |
| |<form> <hn> |
| |<hr> <i> |
| |<img> <input type="button"> |
| |<input type="checkbox"> <input type="file"> |
| |<inputtype="image"> <input type="password"> |
| |<input type="radio"> <input type="reset"> |
| |<input type="submit"> <input type="text"> |
| |<kbd> <label> |
| |<legend> <li> |
| |<listing> <map> |
| |<marquee> <menu> |
| |<nobr> <ol> |
| |<p> <pre> |
| |<rt> <ruby> |
| |<s> <samp> |
| |<select> <small> |
| |<span> <strike> |
| |<strong> <sub> |
| |<sup> <table> |
| |<tbody> <td> |
| |<textarea> <tfoot> |
| |<th> <thead> |
| |<tr> <tt> |
| |<u> <ul> |
| |<var> <xmp> |
+----------------+--------------------------------------------------------------+
"onFocusIn" Properties
+----------------+--------------------------------------------------------------+
| Properties |altKey altLeft |
| |cancelBubble clientX |
| |clientY ctrlKey |
| |ctrlLeft offsetX |
| |offsetY screenX |
| |screenY shiftKey |
| |shiftLeft srcElement |
| |type wheelDelta |
| |x y |
+----------------+--------------------------------------------------------------+
"onFocusIn" Syntax and Note
Note:
This event fires just before the focus is set on an element.