30 Days Of JavaScript

Day 17: Events

Lesson 0: Intro

Now that we know how to interact with the DOM in JavaScript, it's time to start making things feel more interactive.

JavaScript has the concept of events, something happens and we get the chance to run some code. Here are the main events that we care about.

  1. onclick
  2. onmouseover and onmouseout
  3. setTimeout and setInterval
  4. keydown
  5. onload

Ok so number 3 aren't technically events BUT they are super useful and they allow us to execute code at a certain time in the future.

Let's dive into these.

Outline

Go Pro?

If you upgraded to pro, sign in here

  • About
  • Blog
  • Privacy
Looking to email me? You can get me on my first name at allthecode.co