글쓰기에서 스크립트가 작동이 안됩니다. > 그누4 질문답변

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기
기존 게시물은 열람만 가능합니다.

글쓰기에서 스크립트가 작동이 안됩니다. 정보

글쓰기에서 스크립트가 작동이 안됩니다.

본문

input 값에 글자 미리보여주고 input 클릭하면 미리보여주는 글자가 사라지는 스크립트인데
유독 글쓰기 에서만 글자가 안사라지네요 -_-
우짜면 좋을까요 ㅠㅠ

<script>

var count = 0;


function chec(name) {
count++;
if(count == 1){
 var doc=document.body.createTextRange();
 doc.moveToElementText(document.all(name));
 doc.select();
 doc.execCommand('delete');
 return;
 }else{
  return;
 }
}

</script>

<textarea name='wr_content' id='wr_content' class=ed style="font-family:굴림체; color:#000; padding:10px;line-height:15px;margin:auto; margin-top:0px; overflow: hidden; width:130px; height:100px; font-size: 9pt; border:0; background-color:#88C8F8;" cols="10" onkeyup="byte_check('wr_content', 'sms_bytes');" accesskey="m" itemname='메세지' onFocus='chec(this.name);this.style.color=000000;' onclick='chec(this.name);this.style.color=000000;'>※ 핸드폰번호는 숫자만 입력바랍니다.</textarea>
  • 복사

댓글 전체

© SIRSOFT
현재 페이지 제일 처음으로