Beispiel:JS-Event-onkeyup.html

Aus SELFHTML-Wiki
Wechseln zu: Navigation, Suche

<!DOCTYPE html> <html> <head>

 <meta charset="utf-8">
 <meta name="viewport" content="width=device-width, initial-scale=1.0;" />
 <link rel="stylesheet" type="text/css" media="screen" href="./Beispiel:Grundlayout.css" /> 
 <title>Beispiel: keyup Event</title>

</head>

<body>

Beispiel: keyup Event

 <main>

Sobald du eine Taste loslässt, wird über keyup ein Ereignis ausgelöst.

 <form name="Test" action="">
   <input type="text" size="30" name="Eingabe"
     onkeyup="this.form.Ausgabe.value = this.value">
<input type="text" readonly size="30" name="Ausgabe">
<input type="reset"> </form> </main>

</body> </html>