JavaScript Reference/Javascript Properties/isMultiline

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

"isMultiline" Example

   <source lang="javascript">
   

<html> <body> <textarea id="myText" cols="200" rows="20"></textarea> <button onclick="alert(myText.isMultiLine);">Is Textarea Multiline</button> </body> </html>


     </source>
   
  


"isMultiline" is applied to

   <source lang="javascript">

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

| |
|

| |<body>
| | |<button> |

| |
|

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

| | |defaults | | | <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"> | | |<isindex> | | |<label> <legend> |

| |
  • <link> | | |<listing> <map> | | |<marquee> <menu> | | |<nobr> <noframes> | | |<noscript> <object> | | |
      <option> | | |

      <plaintext> | | |

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

        "isMultiline" Possible Values

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


        </source>



        "isMultiline" Syntax and Note

        <source lang="javascript"> Note: Read-only property. Can element display more than one line of text.

        Syntax:

        document.all.elementID.isMultiline


        </source>

      |

      | |<textarea> <tfoot> |

      | |
      <thead> | | |<title>