Загрузка страницы

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

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: http://codepen.io/anon/pen/doZbPQ?editors=101

And here's all the key codes: https://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"
https://www.youtube.com/watch?v=fgOO9YUFlGI
-~-~~-~~~-~~-~-

Видео Javascript Events Tutorial Part 2 - Javascript Tutorials for Beginning Web Development канала LearnCode.academy
Показать
Комментарии отсутствуют
Введите заголовок:

Введите адрес ссылки:

Введите адрес видео с YouTube:

Зарегистрируйтесь или войдите с
Информация о видео
23 июня 2015 г. 20:30:01
00:15:11
Яндекс.Метрика