javascript 리 턴 제출 폼

646 단어
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>javascript      </title>
</head>
<body>
<input type="text" id="enter"/>
<script>

    window.onload=function(){
    var enter=document.getElementById("enter");
        enter.onkeyup=function(e){
            var e= e||window.event;
            var keycode= e.keyCode|| e.which|| e.charCode;
            if(keycode==13){
                alert("    ");
            }
        }
    }

</script>
</body>
</html>

좋은 웹페이지 즐겨찾기