Using prompt() I am generating some html to and need to know the maximum length that I can put in the popup.
I can't find anything in the spec about this, wondering if someone can help
Here are some real world numbers in case anyone is interested. Please add more if you have any.
Using the following code in the browser console:
s = prompt("a", Array(SOME_NUMBER).join("0")); s.length;
The ECMAScript Programming Language Specification does not specify any maximum length. The maximum length with will be implementation-specific i.e, based on available memory.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With