- Overview
- Transcript
1.1 Introduction
Hi, I am Jeremy McPeak, and I invite you to spend a little time with me learning how to use events in JavaScript. Watch this video to get a preview of what we’ll cover in the course.
1.Introduction2 lessons, 07:57
1.1Introduction01:31
1.2What You Need06:26
2.Learning to Use Events5 lessons, 41:59
2.1Using HTML Attribute Event Handlers06:01
2.2The Event Object07:53
2.3Assigning Events With JavaScript09:32
2.4Using the Standard DOM Event API07:24
2.5Preventing Default Actions11:09
3.Conclusion1 lesson, 02:27
3.1Conclusion02:27
1.1 Introduction
Events are probably the most important part of writing JavaScript that runs in the browser. Because when you think about it, a web page is a program with a graphical user interface. And most of the time, our code waits for the user to do something. Either they click on a special element in the page or they drag an element to reposition it in the document. Or maybe we want to validate a form before it is submitted to the server. All of these things depend upon the events. And as such You'll need to understand how to work with them. Hi, I am Jeremy McPeak. And I invite you to spend a little time with me as we practice using events. We'll build a tab control that displays content based upon the user's input, and we'll start by practicing several different ways you can setup event handlers in your webpage. You'll learn about the HTML attribute event handlers, and how they can make it easy to get started handling events in your code. You'll also learn how to set up your event handlers using JavaScript and the standard DOM API. We'll also look at the event object, and use it to gather and use information about the event in order to manipulate elements in the page. Now, this course isn't meant as an exhaustive examination of events. But I do promise you that by the end of this course you'll have a good working knowledge of events, and you will be able to start using them in your own web pages. So when you're ready, queue up the next video and we will get started.







