Event Delegation


Event Delegation is the last lesson of this course Introducing Java Script . Idea of event delegation is to set any event handler at the document level for the click event and than we examine the information from the event determine the target and than we become do something based on target what the target is.

Event Delegation Event Delegation

Try this example's result below :

Normal Changed
Free Web Hosting

So in this lesson we see some handy tricks by using event delegation. In next example we are going to set two event handler togeather (click and mouseover), So lets see:


Event Delegation Event Delegation

Try this example's result below :

Change to Normal Change to Changed go to Google

Wconcert India © 2015   ·   All Rights Reserved