mirror of
https://github.com/rkd77/elinks.git
synced 2024-09-06 23:44:43 -04:00
[test] onkeydown.html
This commit is contained in:
parent
7724b18bc2
commit
9b895b3681
16
test/ecmascript/onkeydown.html
Normal file
16
test/ecmascript/onkeydown.html
Normal 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>
|
Loading…
Reference in New Issue
Block a user