-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path08-JS-events.js
More file actions
34 lines (29 loc) · 1.2 KB
/
08-JS-events.js
File metadata and controls
34 lines (29 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*
=====================
JavaScript Events
=====================
*/
/*
An HTML event can be something the browser does, or something a user does.
EX:
<button onclick="this.innerHTML = Date()">The time is?</button>
*/
/*
============================
Common HTML Events
============================
Event | Description
------------------------------------------------------------------
onchange | An HTML element has been changed
------------------------------------------------------------------
onclick | The user clicks an HTML element
------------------------------------------------------------------
onmouseover | The user moves the mouse over an HTML element
------------------------------------------------------------------
onmouseout | The user moves the mouse away from an HTML element
------------------------------------------------------------------
onkeydown | The user pushes a keyboard key
------------------------------------------------------------------
onload | The browser has finished loading the page
------------------------------------------------------------------
*/