-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path13_event.html
More file actions
86 lines (76 loc) · 1.85 KB
/
13_event.html
File metadata and controls
86 lines (76 loc) · 1.85 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<title>HTML Intro</title>
</head>
<script>
//Boolean, Number, String, Array, Object 5가지타입
/**
window
window.location
window.history
window.screen
window.navigarot
window.document
window.document.body
window.document.img
window.document.form
window.document.form.input
**/
//Fuction1
var add = new Function("x,y", "return x+y") ;
//Fuction2(제일많이 사용)
var minus = function(x,y) {
return x-y;
} ;
var minusx = (x,y) => {
return x-y;
} ;
//Fuction3
function multi(x,y) {
return x*y;
}
//Fuction4
function divide(x,y) {
//return x/y;
document.write("divide: " + x/y) ;
}
</script>
<body>
<h1>https://developer.mozilla.org</h1>
<h1>여러분을 환영합니다!!</h1><br><br>
<form>
<p>
<input type="button" value="test1" onclick="alert('test onclick');"/>
<input type="button" value="test2" onmouseover="alert('test2 mouseover');"/>
<span onclick="alert('span onclick')">스팬입니다.</span>
</p>
<p>
<input type="button" value="divide" onclick="divide(100,10);"/>
<input type="button" value="multi" onclick="multi(3,4);"/>
</p>
<p>
<strong>아이디</strong>
<input type="text" name="name" value="아이디 입력">
</p>
<p>
<strong>비밀번호</strong>
<input type="password" name="password" value="비밀번호 입력">
</p>
<p>
<strong>성별</strong>
<input type="radio" name="gender" value="M">남자
<input type="radio" name="gender" value="F">여자
</p>
<p>
<strong>응시분야</strong>
<input type="checkbox" name="part" value="eng">영어
<input type="checkbox" name="part" value="math">수학
</p>
<p>
<input type="submit" value="제출">
</p>
</form>
</body>
</html>