JavaScript Reference/Event Handlers Reference/onBeforeActivate
Содержание
"onBeforeActivate" Example
<html>
<body>
<p>Press tab to bring the following link into focus.</p>
<a href="http://www.wbex.ru/"
target=_blank
onbeforeactivate="alert("activated")">
wbex.ru
</a>
</body>
</html>
"onBeforeActivate" 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> |
+----------------+--------------------------------------------------------------+
"onBeforeActivate" Properties
+----------------+--------------------------------------------------------------+
| Properties |altKey altLeft |
| |cancelBubble clientX |
| |clientY ctrlKey |
| |ctrlLeft fromElement |
| |offsetX offsetY |
| |screenX screenY |
| |shiftKey shiftLeft |
| |srcElement type |
| |wheelDelta x |
| |y |
+----------------+--------------------------------------------------------------+
"onBeforeActivate" Syntax and Note
Note:
This event fires immediately before the object receives focus.