Example #1: Check the categories and click button to see onClick Attributes
Example #2: Click Link Below to See onClick Prevent Default Behavior
Ideal Programmer
When onclick is passed a false return value, the default behavior (going to the
new page) is prevented.
Example #3: Click Link Below to See onClick Copy Example
FieldA:
FieldB:
Click the button below to copy the content of FieldA to FieldB.