ํฐ์คํ ๋ฆฌ ๋ทฐ
<%@ page language="java" contentType="text/html; charset=EUC-KR"
pageEncoding="EUC-KR"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=EUC-KR">
<title>Node Access ์ฐ์ต</title>
<script type="text/javascript">
//์๋์ฐ๊ฐ ๋ชจ๋ ๋ก๋๋๋ฉด ๋ฒํผ์ ์ด๋ฒคํธ๋ฅผ ๋ฑ๋กํ๋ค.
window.onload = function() {
//๋ฒํผ์ ์ฐพ์๋ผ.
var btn = document.getElementById("btn");
//๋ฒํผ์ ํด๋ฆญ์ด๋ฒคํธ๋ฅผ ๋งคํํ๋ค.
btn.onclick = function() {
//๋ฒํผ์ ํด๋ฆญํ๋ฉด id๋ผ๋ ์์ด๋๋ฅผ ๊ฐ์ง ์์์ ๊ธ์๋ฅผ ์ถ๋ ฅํ์.
var id = document.getElementById("id");
alert(id.value);
}
}
</script>
</head>
<body>
<input type="text" id="id" size="20" />
<input type="button" id="btn" value="GoGoGo" />
</body>
</html>
'JS' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
Ajax ์์ (0) | 2010.07.12 |
---|---|
DOM ๊ฐ์ฒด 02 (0) | 2010.07.09 |
JSON ์ด์ฉํ ๊ฐ์ฒด toString (0) | 2010.07.09 |
JSON ์ด์ฉํ ๊ฐ์ฒด์์ฑ (0) | 2010.07.09 |
์๋ฐ์คํฌ๋ฆฝํธ class ๊ฐ๋ (0) | 2010.07.09 |
- Total
- Today
- Yesterday
- ๋์ค
- EL
- ์นด๋ฐ์จ๋ผ์ธ
- 2ne1
- ์๋ฐ์คํฌ๋ฆฝํธ
- jQuery
- Java
- JS
- MS-SQL
- php
- ๋ฉ๋ฐฐํ
- I Don't Care
- ์๋ฆฌ
- Servlet
- ํจ์
- MySQL
- asp
- JSON
- ์๋ธ๋ฆฟ
- ์์์ฌ์ด๋
- ์น์์ด์ ์
- JSTL
- 8๋ง์ผ
- ๊ฒฝ์ ์ฉ์ด
- JSP
- Ajax
- JavaScript
- ์ธํจ์ด
- ๊ธฐํ
- ๋ณต๊ทผ์ด๋
์ผ | ์ | ํ | ์ | ๋ชฉ | ๊ธ | ํ |
---|---|---|---|---|---|---|
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 |