summaryrefslogtreecommitdiff
path: root/something.html
diff options
context:
space:
mode:
Diffstat (limited to 'something.html')
-rw-r--r--something.html18
1 files changed, 18 insertions, 0 deletions
diff --git a/something.html b/something.html
new file mode 100644
index 0000000..04a1712
--- /dev/null
+++ b/something.html
@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+<html>
+<body>
+
+<p>Click the button to display a random number.</p>
+
+<button onclick="myFunction()">Try it</button>
+
+<p id="demo"></p>
+
+<script>
+function myFunction() {
+ document.getElementById("demo").innerHTML = Math.round(Math.random(0,20) * 10);
+}
+</script>
+
+</body>
+</html>