blur 예제
아이디: <input type="text" id="hz" onblur="homzzang()"> <script> function homzzang() { var x = document.getElementById("hz"); x.value = x.value.toUpperCase(); } </script> 결과보기
아이디: <input type="text" id="hz" onblur="homzzang()">
<script>
function homzzang() {
var x = document.getElementById("hz");
x.value = x.value.toUpperCase();
}
</script>
결과보기
blur 정의
blur 구문
아이디: <input type="text" id="hz" onfocus="homzzangOn()" onblur="homzzangOff()"> <script> function homzzangOn() { document.getElementById("hz").style.background = "yellow"; } function homzzangOff() { document.getElementById("hz").style.background = "transparent"; } </script> 결과보기
아이디: <input type="text" id="hz" onfocus="homzzangOn()" onblur="homzzangOff()">
function homzzangOn() {
document.getElementById("hz").style.background = "yellow";
function homzzangOff() {
document.getElementById("hz").style.background = "transparent";