텍스트 필드에 디폴트 메세지를 보여주고 클릭하면 사라집니다 정보
JavaScript 텍스트 필드에 디폴트 메세지를 보여주고 클릭하면 사라집니다본문
<!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>
<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>
추천
0
0
댓글 0개