JavaScript Reference/Javascript Properties/isTextEdit

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

"isTextEdit" Example

   <source lang="javascript">
   

<html> <body> <script language="JavaScript">

   function function1(elem) {
       elem ? alert("Yes") : alert("No");
   }

</script> <input type="text" id="myInput" value="Input element"> <textarea id="myTxtArea">Textarea element</textarea>

P element


<button onclick="function1(myInput.isTextEdit);">Input</button> <button onclick="function1(myTxtArea.isTextEdit);">TextArea</button> <button onclick="function1(myP.isTextEdit);">Paragraph</button> </body> </html>


     </source>
   
  


"isTextEdit" is applied to

   <source lang="javascript">

+----------------+--------------------------------------------------------------+ | Applied_To |<a> <acronym> | | |<address> <applet> | | |<area> | | |<base> <basefont> | | | |

| |
<body> |

| |
<button> |

| |
|

| | | | |<col> <colgroup> | | |<comment> <custom> | | |

| | | <dir> |

| |
|

| |

| | |<embed> <fieldset> | | | <form> | | |<frame> <frameset> | | |<head> <hn> |

| |
<html> |

| | <iframe> | | |<img> <input type="button"> | | |<input type="checkbox"> <input type="file"> | | |<input type="hidden"> <input type="image"> | | |<input type="password"> <input type="radio"> | | |<input type="reset"> <input type="submit"> | | |<input type="text"> | | | <label> |

| |<legend>
  • | | |<link> <listing> | | |<map> <marquee> | | |<menu> <meta> | | |<nobr> <object> | | |
      <option> | | |

      <plaintext> | | |

                                                            |
      |                |                                                     |
      |                |<script>                        <select>                      |
      |                |                                                 |
      |                |                                              |
      |                |                                                    |
      |                |                         <tbody>                       |
      |                |                          |
      |                |                             
        | | | <xmp> | +----------------+--------------------------------------------------------------+ </source>

        "isTextEdit" Possible Values

        <source lang="javascript"> Possible Values true false.


        </source>



        "isTextEdit" Syntax and Note

        <source lang="javascript"> Note: Read-only property. Does element allow a TextRange object to modify its content.

        Syntax:

        document.all.elementID.isTextEdit


        </source>

      <textarea> | | |<tfoot> |

      | |<thead> <title> |

      | |