Is there any max length for a JavaScript function() parameter?
I created a function which had a long parameter, but it didn't work. When I shortened the parameter of the same function, it worked. Does that mean that there is a maximum length for a function argument? If so, please recommend alternatives to my current method.
JavaScript
function example(idnum) {
alert(idnum);
}
HTML
<div onclick='example(*php variable,no special character included*)'></div>
When the PHP variable is long, such as "17b6f557969619544eb1e6cd58c3f341", it does not work. But if I change the variable to something like "203", the function works successfully.