html onclick pass event
<!DOCTYPE html>
The onclick field is triggered when the current element is pressed. In the
example below, if you clicked a button it would trigger some JavaScript code.
<button onclick="your javascript code or function"></button>.