-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path24 Part3.js
28 lines (23 loc) · 848 Bytes
/
24 Part3.js
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
/*global console, alert, prompt*/
var myDiv = document.getElementById("test1"),
myDiv2 = document.getElementById("test2"),
myValue = document.getElementById("input"),
myDiv3 = document.getElementById("test3"),
myDiv4 = document.getElementById("test4"),
myGrp = document.getElementById("optgrp");
myDiv.onmouseover = function f1() {
"use strict";
myDiv.innerHTML = "You Hovered And Activated 'Onmousedown'";// Onmouseover
};
myDiv2.onmouseout = function f2() {
"use strict";
myDiv2.innerHTML = "You Have Gone and Activated \"Onmouseout\"";// Onmousedown
};
myValue.onkeydown = function f3() {
"use strict";
myDiv3.innerHTML = myValue.value * 22;
};
myGrp.onchange = function f4() {
"use strict";
myDiv4.innerHTML = "You selected " + myGrp.value;// on change the option he will display this
};