Javascript Events Tutorial Part 2 - Javascript Tutorials for Beginning Web Development @learncodeacademy
Javascript Events Tutorial Part 2 - Javascript Tutorials for Beginning Web Development  @learncodeacademy
Uploaded June 2015 | Updated November 2026, 3 hours ago
In the last video, I covered Javascript Events for new Javascript Web Developers. Let's get a little more complex with those events by adding a loop and some different types of event listeners.

Here's the source code: codepen.io/anon/pen/doZbPQ?editors=101

And here's all the key codes: css-tricks.com/snippets/javascript/javascript-keycodes

A web developer often needs to add an event to multiple elements, but you don't want to repeat your code all over the place, so the best way to do it is to make a loop.

The good news is, since this loop just goes from i=0, i=1, i=2, etc, we can use one loop and add events to all 3 li's & inputs with it.

-~-~~-~~~-~~-~-
Also watch: "Responsive Design Tutorial - Tips for making web sites look great on any device"
youtube.com/watch?v=fgOO9YUFlGI
-~-~~-~~~-~~-~-
Javascript Events Tutorial Part 2 - Javascript Tutorials for Beginning Web DevelopmentREACT FLUX TUTORIAL #12 - Flux ActionsVue Tutorial #4 - Break up your app into Vue ComponentsREACT JS TUTORIAL #6 - React Router & Intro to Single Page Apps with React JSjQuery Tutorial #5 - Building a jQuery Tab Panel WidgetRedux Tutorial #1 - React js tutorial - How Redux WorksScaling Docker #3 - Docker Service Registration with Etcd & FlannelWeb Development Tutorial for Beginners (#1) - How to build webpages with HTML, CSS, JavascriptScaling Docker #5 - Routing DNS to Docker images running on a CoreOS ClusterArangoDB Tutorial - Databases every developer should know aboutNode.js MongoDB Tutorial using MongooseHow To Make A Website From HTML & CSS - FAST, CHEAP, EASY
LearnCode.academy |

Javascript Events Tutorial Part 2 - Javascript Tutorials for Beginning Web Development

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER