From 084e16906291c140c9af5b6456ca2de57ec2963a Mon Sep 17 00:00:00 2001 From: shivani-yamavaram Date: Sun, 4 Oct 2020 20:29:02 +0530 Subject: [PATCH] Fixed the broken button --- js/button.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/button.js b/js/button.js index dccd7a9..718a694 100644 --- a/js/button.js +++ b/js/button.js @@ -12,6 +12,6 @@ var body = document.getElementsByTagName("body")[0]; body.appendChild(button); // 3. Add event handler -button.addEventListener ("clock", function() { +button.addEventListener ("click", function() { alert("did something"); }); \ No newline at end of file