Data type validation
A JavaScript function on the client side runs when the page loads, then reads the custom attributes and sizes the input boxes appropriately. A validation function is attached to these input boxes through the window.attachEvent() function. The validation function also uses the custom attributes to perform data type validations.