1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-14 23:32:27 +00:00

[test] onkeydown.html

This commit is contained in:
Witold Filipczyk 2022-11-03 18:51:00 +01:00
parent 7724b18bc2
commit 9b895b3681

View File

@ -0,0 +1,16 @@
<!DOCTYPE html>
<html>
<body>
<p>A function is triggered when the user is pressing a key in the input field.</p>
<input type="text" onkeydown="myFunction()">
<script>
function myFunction() {
alert("You pressed a key inside the input field");
}
</script>
</body>
</html>