type valuesReading out element.type works only in Mozilla.
Reading out element.getAttribute('type') works only in Mozilla,
Explorer Windows and Safari.
Test script to see if we can read out a custom type attribute of
form fields.
Click a form field to detect its type.
Since custom values for the type attribute don't work cross-browser, I suggest
implementing the custom attribute WFtype, which can be read by all browsers.