built in js html events code example
Example 1: most used events in javascript
most used events in javascript
Example 2: events in javascript
//this is an event detector for a mouseclick with Jquery
$('#id').on('click',function(){
yourFunction(args);
});