JavaScript Reference/Event Handlers Reference/onActivate — различия между версиями
Admin (обсуждение | вклад) м (1 версия) |
|
(нет различий)
|
Текущая версия на 08:22, 26 мая 2010
Содержание
"onActivate" Example
<head>
<script language="JavaScript">
function function1() {
window.open("http://www.wbex.ru/", "", "width=700, height=600, resizable, scrollbars")
}
</script></head>
<body>
<label for="myL" accesskey="L">Press Alt+L to invoke the link </label>
<a id="myL" href="http://www.wbex.ru/" target=_blank onActivate="function1()">
www.wbex.ru
</a>
</body>
"onActivate" is applied to
+----------------+--------------------------------------------------------------+
| Applied_To |<a> <acronym> |
| |<address> <applet> |
| |<area> <b> |
| |<bdo> <big> |
| |<blockquote> <body> |
| |<button> <caption> |
| |<center> <cite> |
| |<custom> <dd> |
| |<dfn> <dir> |
| |<div> <dl> |
| |document <dt> |
| |<em> <embed> |
| |<fieldset> <font> |
| |<form> <frame> |
| |<frameset> <hn> |
| |<hr> <i> |
| |<iframe> <img> |
| |<input type="button"> <inputtype="checkbox"> |
| |<input type="file"> <input type="hidden"> |
| |<input type="image"> <input type="password"> |
| |<input type="radio"> <input type="reset"> |
| |<inputtype="submit"> <input type="text"> |
| |<ins> <isindex> |
| |<kbd> <label> |
| |<legend> <li> |
| |<listing> <marquee> |
| |<menu> <object> |
| |<ol> <p> |
| |<pre> <q> |
| |<rt> <ruby> |
| |<s> <samp> |
| |<select> <small> |
| |<span> <strike> |
| |<strong> <sub> |
| |<sup> <table> |
| |<tbody> <td> |
| |<textarea> <tfoot> |
| |<th> <thead> |
| |<tr> <tt> |
| |<u> <ul> |
| |<var> window |
| |<xmp> |
+----------------+--------------------------------------------------------------+
"onActivate" Properties
+----------------+--------------------------------------------------------------+
| Properties |altKey altLeft |
| |clientX clientY |
| |ctrlLeft offsetX |
| |offsetY returnValue |
| |screenX screenY |
| |shiftLeft srcElement |
| |type x |
| |y |
+----------------+--------------------------------------------------------------+
"onActivate" Syntax and Note
Note:
This event fires when the object has received focus.