Presentation is loading. Please wait.

Presentation is loading. Please wait.

Introduction 1.HTML DOM events allow JavaScript to register different event handlers on elements in an HTML document. 2.Events are normally used in combination.

Similar presentations


Presentation on theme: "Introduction 1.HTML DOM events allow JavaScript to register different event handlers on elements in an HTML document. 2.Events are normally used in combination."— Presentation transcript:

1 Introduction 1.HTML DOM events allow JavaScript to register different event handlers on elements in an HTML document. 2.Events are normally used in combination with functions, and the function will not be executed before the event occurs (such as when a user clicks a button).

2 Introduction

3 USE 1.Inline js: Click me! 2.Call js function: Click me!

4 Popular event EventDescription onchangeAn HTML element has been changed onclickThe user clicks an HTML element onmouseoverThe user moves the mouse over an HTML element onmouseoutThe user moves the mouse away from an HTML element onkeydownThe user pushes a keyboard key onloadThe browser has finished loading the page The list is much longer: W3Schools JavaScript Reference HTML DOM Events.W3Schools JavaScript Reference HTML DOM Events


Download ppt "Introduction 1.HTML DOM events allow JavaScript to register different event handlers on elements in an HTML document. 2.Events are normally used in combination."

Similar presentations


Ads by Google