[

텍스트 필드에 디폴트 메세지를 보여주고 클릭하면 사라집니다

· 2004-11-30 (화) 23:08:27 · 2647
<!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title> Sample </title>
<meta http-equiv=content-type content=text/html; charset=euc-kr>

<script>
function clearText(thefield){
if (thefield.defaultValue==thefield.value)
thefield.value = ""
}
</script>

</head>

<body>

<p>마우스를 클릭하면 텍스트가 사라집니다

<form>
<input type="text" value="검색어를 입력 하세요" onFocus="clearText(this)">
</form>

</body>
</html><div class='small'>[이 게시물은 관리자님에 의해 2011-10-31 16:57:14 JavaScript에서 이동 됨]</div>
|
댓글을 작성하시려면 로그인이 필요합니다.

프로그램

8,188건
+
제목 글쓴이 날짜 조회
04-12-27 조회 3,892
04-12-04 조회 3,750
04-11-29 조회 3,209
04-11-29 조회 4,055
04-11-29 조회 3,793
04-11-29 조회 6,030
04-11-29 조회 3,403
04-11-29 조회 5,715
04-11-29 조회 3,399
04-11-29 조회 4,006
04-11-29 조회 8,482
04-11-29 조회 4,716
04-11-29 조회 4,103
04-11-29 조회 5,608
04-11-29 조회 7,112
04-11-29 조회 5,362
04-11-29 조회 6,678
04-11-29 조회 4,496
04-11-29 조회 6,853
04-11-28 조회 4,022
04-11-10 조회 3,764
04-10-12 조회 6,116
04-09-16 조회 4,981
04-08-10 조회 6,694
04-08-10 조회 3,952
04-08-10 조회 5,055
04-08-10 조회 7,562
04-08-10 조회 7,841
04-08-05 조회 6,020