ENع
الدرس 23 · JavaScript in the browser

Events

لم يُترجم بعد؛ يُعرض باللغة الإنجليزية

An event is the browser telling your code that something happened: a click, a key press, a form being sent. Follow one click on a to-do list: the browser makes an event object, carries it down the DOM tree to the button and back up, and the single listener on the list runs, finds the clicked row and crosses it out. Then a second click shows why one listener on a parent can serve every child: event delegation.

11 دقيقة10 خطوات5 أسئلةIntermediate
شكل 23 · تفاعلي
جارٍ تحميل الرسم…
أو ← →

اختبار يتاح بعد الخطوة الأخيرة.