diff options
Diffstat (limited to 'wk8/pset')
-rw-r--r-- | wk8/pset/trivia/index.html | 5 |
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> |