<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                # HTML DOM Text 對象 ## Text 對象 Text 對象代表 HTML 表單中的文本輸入域。 在 HTML 表單中 &lt;input type="text"&gt; 每出現一次,Text 對象就會被創建。 該元素可創建一個單行的文本輸入字段。當用戶編輯顯示的文本并隨后把輸入焦點轉移到其他元素的時候,會觸發 onchange 事件句柄。 您可以使用 HTML &lt;textarea&gt; 標記來創建多行文本輸入。參閱 [Textarea 對象](/jsref/dom_obj_textarea.asp)。 對于掩碼文本輸入,把 &lt;input type="text"&gt; 中的 type 設置為 "password"。參閱 [Input Password](/jsref/dom_obj_password.asp)。 您可以通過表單的 elements[] 數組來訪問文本輸入域,或者通過使用 document.getElementById()。 ## Text 對象屬性 | 屬性 | 描述 | | --- | --- | | [accessKey](/jsref/prop_text_accesskey.asp) | 設置或返回訪問文本域的快捷鍵。 | | [alt](/jsref/prop_text_alt.asp) | 設置或返回當瀏覽器不支持文本域時供顯示的替代文本。 | | [defaultValue](/jsref/prop_text_defaultvalue.asp) | 設置或返回文本域的默認值。 | | [disabled](/jsref/prop_text_disabled.asp) | 設置或返回文本域是否應被禁用。 | | [form](/jsref/prop_text_form.asp) | 返回一個對包含文本域的表單對象的引用。 | | [id](/jsref/prop_text_id.asp) | 設置或返回文本域的 id。 | | [maxLength](/jsref/prop_text_maxlength.asp) | 設置或返回文本域中的最大字符數。 | | [name](/jsref/prop_text_name.asp) | 設置或返回文本域的名稱。 | | [readOnly](/jsref/prop_text_readonly.asp) | 設置或返回文本域是否應是只讀的。 | | [size](/jsref/prop_text_size.asp) | 設置或返回文本域的尺寸。 | | [tabIndex](/jsref/prop_text_tabindex.asp) | 設置或返回文本域的 tab 鍵控制次序。 | | [type](/jsref/prop_text_type.asp) | 返回文本域的表單元素類型。 | | [value](/jsref/prop_text_value.asp) | 設置或返回文本域的 value 屬性的值。 | ## 標準屬性 | 屬性 | 描述 | | --- | --- | | [className](/jsref/prop_classname.asp) | 設置或返回元素的 class 屬性。 | | [dir](/jsref/prop_dir.asp) | 設置或返回文本的方向。 | | [lang](/jsref/prop_lang.asp) | 設置或返回元素的語言代碼。 | | [title](/jsref/prop_title.asp) | 設置或返回元素的 title 屬性。 | ## Text 對象方法 | 方法 | 描述 | | --- | --- | | [blur()](/jsref/met_text_blur.asp) | 從文本域上移開焦點。 | | [focus()](/jsref/met_text_focus.asp) | 在文本域上設置焦點。 | | [select()](/jsref/met_text_select.asp) | 選取文本域中的內容。 |
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看