JavaScript Reference/Event Handlers Reference/onResize

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

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

| | <custom> | | |

|

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

      | | |<textarea>