Tuesday, March 22, 2016

Javascript Events By Example

Hello everybody, today I will show you three types of javascript events.

Type 01 : In this type event you can add event in html tag, this is bad practice.

Type 02 : This type of event is very handy. you grub the element by id and attach event.

Type 03 : This is more advance type than Type 02, the advantage is you can add multiple events, create your own event and attach them in your code even non DOM elements.

Here is the simple example of these three types of events.


Post a Comment