본문 바로가기

Javascript

게시판 댓글 인풋박스 포커싱할때 값 없애는 소스

 function clearText(obj){
  if (obj.defaultValue==obj.value)
  obj.value = ""
  if (obj.style.backgroundImage != "")
  obj.style.backgroundImage="";
 } 

말이 어렵나??

암튼 이거