button.name
button.name = text; // set button name
The name property returns or sets the name of the specified button.