[

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

· 2004-11-30 (화) 23:08:27 · 1788
<!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>
|
댓글을 작성하시려면 로그인이 필요합니다.

팁게시판

6,077건

디자인과 관련된 유용한 정보를 공유하세요. 질문은 상단의 QA에서 해주시기 바랍니다.

+
제목 글쓴이 날짜 조회
04-11-30 조회 2,245
04-11-30 조회 2,583
04-11-30 조회 1,764
04-11-30 조회 1,592
04-11-30 조회 1,636
04-11-30 조회 2,145
04-11-30 조회 1,901
04-11-30 조회 2,406
04-11-30 조회 3,580
04-11-30 조회 1,581
04-11-30 조회 1,789
04-11-30 조회 3,189
04-11-29 조회 2,371
04-11-29 조회 3,225
04-11-29 조회 2,886
04-11-29 조회 3,320
04-11-29 조회 5,123
04-11-29 조회 2,537
04-11-29 조회 4,842
04-11-29 조회 2,519
04-11-29 조회 3,133
04-11-29 조회 7,618
04-11-29 조회 3,851
04-11-29 조회 3,233
04-11-29 조회 4,705