-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathles4practicum3.html
35 lines (33 loc) · 1.75 KB
/
les4practicum3.html
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
27
28
29
30
31
32
33
34
35
<!DOCTYPE html>
<html>
<title>JavaScript Rekenmachine</title>
<body>
<div id="frame">
<form name="rekenmachine">
<div id="display">
<input type="text" name="antwoord" id="antwoord">
</div>
<br>
<input type="button" value="1" onclick="rekenmachine.antwoord.value+= '1'">
<input type="button" value="2" onclick="rekenmachine.antwoord.value+= '2'">
<input type="button" value="3" onclick="rekenmachine.antwoord.value+= '3'">
<input type="button" value="+" onclick="rekenmachine.antwoord.value+= '+'">
<br>
<input type="button" value="4" onclick="rekenmachine.antwoord.value+= '4'">
<input type="button" value="5" onclick="rekenmachine.antwoord.value+= '5'">
<input type="button" value="6" onclick="rekenmachine.antwoord.value+= '6'">
<input type="button" value="-" onclick="rekenmachine.antwoord.value+= '-'">
<br>
<input type="button" value="7" onclick="rekenmachine.antwoord.value+= '7'">
<input type="button" value="8" onclick="rekenmachine.antwoord.value+= '8'">
<input type="button" value="9" onclick="rekenmachine.antwoord.value+= '9'">
<input type="button" value="*" onclick="rekenmachine.antwoord.value+= '*'">
<br>
<input type="button" value="c" onclick="rekenmachine.antwoord.value= ''">
<input type="button" value="0" onclick="rekenmachine.antwoord.value+= '0'">
<input type="button" value="=" onclick="rekenmachine.antwoord.value= eval(rekenmachine.antwoord.value)">
<input type="button" value="/" onclick="rekenmachine.antwoord.value+= '/'">
</form>
</div>
</body>
</html>