JavaScript Intro: More Events: onfocus, onblur, oninput, and onchange

preview_player
Показать описание
In this video we look at a webpage with a couple of simple inputs (one text and another number) and we look at some of the events -- namely: onfocus, onblur, oninput, and onchange. The functions called just print to the console, so the demo is more about seeing when the events are raised (and functions called) rather than to see any particular change made to the webpage. We also called the same functions from two different elements and passed the keyword "this" as an argument which allowed the function to distinguish which element had called it.
Рекомендации по теме
visit shbcf.ru