File: eventhandler.htm

package info (click to toggle)
selfhtml 8.0-5
  • links: PTS
  • area: non-free
  • in suites: sarge
  • size: 32,684 kB
  • ctags: 3,788
  • sloc: xml: 605; java: 376; makefile: 57
file content (26 lines) | stat: -rw-r--r-- 632 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Strict//EN"
       "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Event-Handler notieren</title>
<script type="text/javascript">
<!--
 function Ergebnis() {
  document.Formular.Eingabe.value = eval(document.Formular.Eingabe.value);
 }
//-->
</script>
</head>
<body>

<form name="Formular">
<p>Geben Sie eine Rechenoperation mit Grundrechenarten ein und klicken Sie dann
auf den Button neben dem Eingabefeld:</p>
<p>
<input type="text" name="Eingabe" size="30">
<input type="button" value=" = " onClick="Ergebnis()">
</p>
</form>

</body>
</html>