-
Notifications
You must be signed in to change notification settings - Fork 0
/
9-mouse-events.html
32 lines (28 loc) · 1.01 KB
/
9-mouse-events.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Mouse events</title>
<link rel="stylesheet" type="text/css" href="">
<style>
#box {
width: 100px;
height: 100px;
background-color: blueviolet;
}
</style>
</head>
<body>
<h1>Mouse events</h1>
<!-- <div id="box" onclick="fu()"></div>single click -->
<!-- <div id="box" oncontextmenu="fu()"></div> right click p activate -->
<!-- <div id="box" ondblclick="fu()"></div>on double click -->
<!-- <div id="box" onmousedown="fu()"></div>click mouse and down mouse -->
<!-- <div id="box" onmouseup="fu()"></div>clcik mouse and out mouse -->
<!-- <div id="box" onmouseover="fu()"></div> mouse hover -->
<!-- <div id="box" onmouseout="fu()"></div>hover karke niklne p -->
<script src="js/9-mouse-events.js"></script>
</body>
</html>