Notice
Recent Posts
Recent Comments
Link
«   2025/03   »
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
Tags
more
Archives
Today
Total
관리 메뉴

WON.dev

chapter06 : 함수사용예제 본문

WEB.JS/04.함수_JS

chapter06 : 함수사용예제

GAWON 2023. 5. 19. 09:34
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<script type="text/javascript">
function welcome(){
alert("welcome");
}
</script>
</head>
<body>
<h1>선언적 함수 사용</h1>
<p>아래 버튼을 클릭하면 "welcome" 메세지가 나타납니다</p>
<input type="button" value="클릭!" onclick="welcome();">

//버튼이벤트넣은예제
</body>
</html>

'WEB.JS > 04.함수_JS' 카테고리의 다른 글

chapter08 : 콜백함수  (0) 2023.05.19
chapter07 : 스코프  (0) 2023.05.19
chapter05 : 선언적함수_표현적함수  (0) 2023.05.19
chapter04 : 표현적함수  (0) 2023.05.19
chapter03 : 선언적함수  (0) 2023.05.19