summaryrefslogtreecommitdiff
path: root/wk8/pset/trivia
diff options
context:
space:
mode:
authorFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2024-07-05 00:09:15 +0000
committerFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2024-07-05 00:09:15 +0000
commit16996cffc84e0a38331972b6daa2e2fcb9c37533 (patch)
treecfbb97fcd18e404226502abc6118dbe2918f139f /wk8/pset/trivia
parentacdbd5a132b9d3ec737827932c796e9cf7e02915 (diff)
Thu, Jul 4, 2024, 5:09 PM -07:00
Diffstat (limited to 'wk8/pset/trivia')
-rw-r--r--wk8/pset/trivia/index.html5
1 files changed, 5 insertions, 0 deletions
diff --git a/wk8/pset/trivia/index.html b/wk8/pset/trivia/index.html
index 1f028ac..44765fc 100644
--- a/wk8/pset/trivia/index.html
+++ b/wk8/pset/trivia/index.html
@@ -7,6 +7,11 @@
<title>Trivia!</title>
<script>
// TODO: Add code to check answers to questions
+ document.querySelector('button').addEventListener('click', function(event) {
+ alert('hello, ' + document.querySelector('#name').value);
+ event.preventDefault();
+ });
+
</script>
</head>
<body>