Today I have seen an odd disabled button behavior in IE browser
I know if a button is disabled it doesn’t respond to any mouse events, but check this out
<html>
<body>
<input type="button" value="button type" disabled="disabled"
onmouseover="alert('respond to mouse event');" />
<input type="submit" value="submit type" disabled="disabled"
onmouseover="alert('respond to mouse event');"/>
</body>
</html>
Both the above elements are disabled and are not clickable and hence you won’t see the alert message while hovering over these buttons(the onmouseover events won’t fire) but the second html button text(‘submit type’) happen to be selectable and if you hold down the mouse and move it till the mouse is out of the button area and release the button then you will see the alert message. Very odd!!!!!
This didn’t happen for input type button. Both form elements should have behaved the same way as specified in the documentation http://msdn2.microsoft.com/en-us/library/ms533732(VS.85).aspx