JavaScript Reference/Event Handlers Reference/onResizeStart

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

"onResizeStart" Example

    
<html>
<head>
<script language="JavaScript">
    function function1() {
        alert("The "+event.type+" event fired")
    }
</script>
</head>
<body>
    <a id="myL" href="" contenteditable=true onresizestart="function1()">
        <img src="http://www.wbex.ru/style/logo.png" 
             alt="www.wbex.ru" width="79" height="99">
    </a>
</body>
</html>



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



"onResizeStart" Properties

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



"onResizeStart" Syntax and Note

Note:
    
This event fires when starting resizing an object.