Description: Illustrates the JavaScript syntax for the Button Object type Property .
Syntax: ButtonObject.type="button|reset|submit" – Allows you to access the type of a Button Object. NOTE: Assigning type cannot be done after element is created. The only way to do it is to create a new element that looks just like the old one and assign a type to the new element. Then, you replace the original element with the new one.