<input ... onclick="if(isNaN(value))execCommand('undo')"/>