Click the button to find out if the button element has an onclick attribute.

Internet Explorer 8 and earlier does not support the hasAttribute() method.