Differences
This shows you the differences between two versions of the page.
| ffprog:ffprogjava2016:javascript [2016/08/19 14:31] – created Ivo Blöchliger | ffprog:ffprogjava2016:javascript [2016/08/19 15:05] (current) – Ivo Blöchliger | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | <code html hello.html> | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | </ | ||
| + | < | ||
| + | < | ||
| + | |||
| + | <button onclick=" | ||
| + | Click mich!</ | ||
| + | |||
| + | </ | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | <code html rechner.html> | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | </ | ||
| + | <body onload=" | ||
| + | |||
| + | < | ||
| + | function neueRechnung() { | ||
| + | var a = Math.floor(Math.random()*20); | ||
| + | var b = Math.floor(Math.random()*20); | ||
| + | | ||
| + | var span = document.getElementById(' | ||
| + | | ||
| + | } | ||
| + | |||
| + | function hello() { | ||
| + | var z = document.getElementById(' | ||
| + | if (z==richtig) { | ||
| + | |||
| + | } else { | ||
| + | |||
| + | } | ||
| + | var span = document.getElementById(' | ||
| + | | ||
| + | | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | |||
| + | <span id=" | ||
| + | Ihr Resultat: <input id=" | ||
| + | <br> | ||
| + | <button onclick=" | ||
| + | Click mich!</ | ||
| + | |||
| + | <span id=" | ||
| + | |||
| + | </ | ||
| + | </ | ||
| + | </ | ||