From de87d2cc1d3b5a3b82884ea7499c99818165feb7 Mon Sep 17 00:00:00 2001 From: dhavap Date: Thu, 15 Aug 2019 19:48:52 -0700 Subject: [PATCH] New button --- js/button.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/js/button.js b/js/button.js index dccd7a9..231113d 100644 --- a/js/button.js +++ b/js/button.js @@ -14,4 +14,8 @@ body.appendChild(button); // 3. Add event handler button.addEventListener ("clock", function() { alert("did something"); -}); \ No newline at end of file +}); + +//create button2 +var button = document.createElement("button"); +button.innerHTML = "Click Me"; \ No newline at end of file