JavaScript Reference/Event Handlers Reference/onResize — различия между версиями
Admin (обсуждение | вклад) м (1 версия) |
|
(нет различий)
|
Текущая версия на 11:22, 26 мая 2010
Содержание
"onResize" Example
<source lang="javascript">
<html> <head> <script language="JavaScript">
function function1() { alert("The "+event.type+" event fired") }
</script> </head> <body>
<a id="myL" href="http://www.wbex.ru" contenteditable=true onresize="function1()"> <img src="http://www.wbex.ru/style/logo.png" alt="http://www.wbex.ru" width="79" height="99"> </a>
</body> </html>
</source>
"onResize" is applied to
<source lang="javascript">
+----------------+--------------------------------------------------------------+ | Applied_To |<a> <acronym> | | |<address> <applet> | | | |
| |<button> | | || | |
| |<dir><custom> | | |
| | | |
- | | | <embed> | | |<fieldset> <form> | | |<frame> <hn> | | |
|| |<img> <input type="button"> | | |<inputtype="file"> <input type="image"> | | |<input type="password"> <input type="reset"> | | |<input type="submit"> <input type="text"> | | | <isindex> | | | <label> |
| |<legend>- | | |<listing> <marquee> | | |<menu> <object> | | |
| | |
| | | <select> | | | | | || | | | | |
| | |<textarea> | | | | | | | | |window <xmp> | +----------------+--------------------------------------------------------------+ </source>
"onResize" Properties
<source lang="javascript"> +----------------+--------------------------------------------------------------+ | Properties |altKey altLeft | | |clientX clientY | | |ctrlKey ctrlLeft | | |offsetX offsetY | | |returnValue screenX | | |screenY shiftKey | | |shiftLeft srcElement | | |type x | | |y | +----------------+--------------------------------------------------------------+
</source>
"onResize" Syntax and Note
<source lang="javascript"> Note:
This event fires when the user resizes an object.
</source>