+ 1

How do I attach alerts to my button

I need help attaching my buttons to my alerts

26th Nov 2017, 2:46 AM
Rodney Stewart Jr
Rodney Stewart Jr - avatar
3 Answers
+ 11
<button onclick="alert('something');">Click</button>
26th Nov 2017, 3:19 AM
Krishna Teja Yeluripati
Krishna Teja Yeluripati - avatar
+ 5
When you get to completing the Javascript lessons, your question is addressed in the last group [DOM & Events] section 6, Handling Events.
26th Nov 2017, 3:23 AM
Kirk Schafer
Kirk Schafer - avatar