button.type

Remarkably, every instance of the type attribute appears to be completely different.