From the course: JavaScript: Events

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Removing an event

Removing an event - JavaScript Tutorial

From the course: JavaScript: Events

Start my 1-month free trial

Removing an event

Last movie we learned how to deal with a new event, the mouse over. And it was pretty similar to the click event. But there's always something unique about the individual events. So if you notice, towards the end of the movie when you roll over some of these things, you've got multiple high-resolution versions showing up. And sometimes when you rolled over these big images, you would get these other errors. Like sometimes it would give you these empty images. And you would see these errors piling up, so we need to deal with the mouse out event, and we were going to learn how to do that in this movie, with a lot of event especially an event like mouse over you going to have to worry not just about the event itself, but any related events that might come up when you work with the JavaScript file, so lets go ahead and fix this. I am going to add the event listener, now this time I am going to add the event listener inside this event listener. So this new event is only going to happen…

Contents