inputField Backspace 버튼 금지 스크립트

– inputField Readonly 필드가 Backspace 버튼이 작동함.

function disableBack(e){

  var key=e.keyCode;

  if (key==8){ <%– 8 is for Backspace –%>

    e.returnValue = false;

  }

}

<script for=”if_bldat” event=”onkeydown” type=”text/javascript”>

  disableBack(event);

</script>

Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments