Form JavaScript Tutorial

The onClick property is an event handler that notifies you when the mouse has been clicked on the button.


    
     Example of the radio onClick event handler
    
    
    
        onClick='alert("This mouse was clicked on this object")'>Box 1