Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- </head>
- <body>
- <p id="zahl">0</p>
- <script type="text/javascript">
- document.getElementById("zahl").addEventListener("click",plusdrei);
- function plusdrei(){
- var input=prompt("Geben Sie eine Zahl ein", "");
- e = parseInt(document.getElementById("zahl").value);
- erg = e+parseInt(input);
- document.getElementById("zahl").innerHTML = erg;
- }
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement