Form JavaScript Tutorial

The name property returns the name of the submit button.
This property is often accessed via the elements array of a Form object and used to return the name of the button.