JavaScript Events

What is an event?

  1. Something the browser does.
  2. Something the user does.

Visit MDN for a more complete list.

Examples

Pop Up Box

Sign Up

Sign Up

Some kind of sign up form.

X

Click on the button above to sign up for our website via a pop up.

Some form logic

Check here to fill out more info. Change your mind? Then uncheck the box.

Prework Examples

On Click

Specifies a JavaScript action when a user clicks on an element.

Click Me

On Mouse Over and On Mouse Out

Hover over me.

Kitty Creator

Figure 1: Meow


Slide to start…

Assignment

When ready, proceed to the assigment for this section.