나의 발자취
[JS] event 속성 / document.write() 은 print()와 같음 본문
<!doctype html>
<html>
<head>
<title></title>
<meta charset="utf-8">
</head>
<body>
<input type = "button" value = "hi" onclick="alert('hi')">
<input type = "text" onchange="alert('changed')">
<input type = "text" onkeydown = "alert('key down!')">
<h1>JavaScript</h1>
<script>
document.write('hello world');
document.write(1+1);
</script>
<h1>Html</h1>
1+1
</body>
</html>'앱 개발 > etc' 카테고리의 다른 글
| [fetch API] (0) | 2020.11.19 |
|---|---|
| [JS] 함수 기능 사용, 객체 넘겨받기 (0) | 2020.11.12 |
| [JS] 반복문을 이용해 태그의 색상 일괄 변경 (0) | 2020.11.12 |
| [JS] 기본문법, 리팩토링: this., var target 변수설정으로 중복 제거 (0) | 2020.11.12 |
Comments