JavaScript Reference/Event Handlers Reference/onResize

Материал из Web эксперт
Перейти к: навигация, поиск

"onResize" Example

    
<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>



"onResize" is applied to

+----------------+--------------------------------------------------------------+
| Applied_To     |<a>                             <acronym>                     |
|                |<address>                       <applet>                      |
|                |<b>                             <big>                         |
|                |<blockquote>                    <button>                      |
|                |<center>                        <cite>                        |
|                |<code>                          <custom>                      |
|                |<dd>                            <dfn>                         |
|                |<dir>                           <div>                         |
|                |<dl>                            <dt>                          |
|                |<em>                            <embed>                       |
|                |<fieldset>                      <form>                        |
|                |<frame>                         <hn>                          |
|                |<hr>                            <i>                           |
|                |<img>                           <input type="button">         |
|                |<inputtype="file">              <input type="image">          |
|                |<input type="password">         <input type="reset">          |
|                |<input type="submit">           <input type="text">           |
|                |<ins>                           <isindex>                     |
|                |<kbd>                           <label>                       |
|                |<legend>                        <li>                          |
|                |<listing>                       <marquee>                     |
|                |<menu>                          <object>                      |
|                |<ol>                            <p>                           |
|                |<pre>                           <s>                           |
|                |<samp>                          <select>                      |
|                |<small>                         <span>                        |
|                |<strike>                        <strong>                      |
|                |<sub>                           <sup>                         |
|                |<table>                         <td>                          |
|                |<textarea>                      <tr>                          |
|                |<tt>                            <u>                           |
|                |<ul>                            <var>                         |
|                |window                          <xmp>                         |
+----------------+--------------------------------------------------------------+



"onResize" Properties

+----------------+--------------------------------------------------------------+
| Properties     |altKey                          altLeft                       |
|                |clientX                         clientY                       |
|                |ctrlKey                         ctrlLeft                      |
|                |offsetX                         offsetY                       |
|                |returnValue                     screenX                       |
|                |screenY                         shiftKey                      |
|                |shiftLeft                       srcElement                    |
|                |type                            x                             |
|                |y                                                             |
+----------------+--------------------------------------------------------------+



"onResize" Syntax and Note

Note:
    
This event fires when the user resizes an object.