What's the largest number of bytes textarea can hold?
Thanks
EDIT I need it in the context of pasting to textarea from the clipboard. So, what's the max of the clipboard object?
What's the largest number of bytes textarea can hold?
Thanks
EDIT I need it in the context of pasting to textarea from the clipboard. So, what's the max of the clipboard object?
HTML is a standard, not a technology. The maximum number of characters you can store in a field is based on the browser's implementation.
I don't think there is a maximum specified anywhere. There are ways to enforce a maximum that makes sense for your application, but the browser should be able to send any arbitrary length to the server, as long as you are using the POST method.
If you are using the GET method, however, you are technically limited to 255 characters in the whole URL/query string, by RFC 2068:
Servers should be cautious about depending on URI lengths above 255 bytes, because some older client or proxy implementations may not properly support these lengths.
Many browsers will not give you problems, but if you are sending large requests, you should be using the POST method.
Also, keep in mind that just because there is no specified maximum, that doesn't mean that every browser will be able to handle extremely large amounts of data. It is possible that different browsers have different limits, but these are not widely documented. It is very rare that you will reach these limits, in any case.