linkedin github twitter

Javascript Events

Four examples of javascript events

1. onchange

Select a fruit from the list.

You selected: apple

2. onclick

3. onmouseover

Move the mouse over the box to view the secret message

4. onkeydown

Get the keycode of a char

Keycode