What is the maximum length of html textbox

前端 未结 3 1613
栀梦
栀梦 2021-02-14 02:11

can anyone help me with the length of maximum characters that can be contain in a normal HTML text box....

3条回答
  •  谎友^
    谎友^ (楼主)
    2021-02-14 02:35

    In HTML4, the maxlength attribute is only supported on the input element. HTML5 extends this to allow it on textarea as well. A quick test works in Firefox 4 and WebKit, but not Firefox 3 or Opera. If you need support for HTML4, use JavaScript to manually limit the length.

提交回复
热议问题