Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

The event object

// Binding a named function
function sayHello( event ) {
    alert( "Hello." );
}
 
$( "#helloBtn" ).on( "click", sayHello );
Source by learn.jquery.com #
 
PREVIOUS NEXT
Tagged: #The #event #object
ADD COMMENT
Topic
Name
1+5 =