<input value="button1" type="button" onclick="alert(this.style)"> <input value="button2" type="button" onclick="alert(this.style)" style="background: #F00">