<!DOCTYPE html>
<html>
<body>

<p>A function is triggered when the user is pressing a key in the input field.</p>

<input type="text" onkeypress="myFunction()">

<script>
function myFunction() {
    alert("You pressed a key inside the input field");
}
</script>

</body>
</html>

------------------------------------------------------------------------

 A function is triggered when the user is pressing a key in the input field.

------------------------------------------------------------------------

프레임 안에 키를 누를때마다 function의 기능이 실행 된다

'Programming > Java' 카테고리의 다른 글

rowspan  (0) 2016.02.15
onkeypress  (0) 2016.02.15

+ Recent posts