I have a form called MyForm a textbox called MyTextBox it has a MaxLength of 20 How do I access the MaxLength attribute of this form via JavaScript programatically? I imagine it will be something like document.MyForm.MyTextBox.maxlength.value but that does not work