+ 3

Onclick Alert Functions In JS

So I finished learning Javascript (I didn't learn it on Sololearn I learned it on a different coding platform) and JQuery a while ago, but I forgot how to use the onclick function that outputs an alert when you click an HTML button. Can some please use an example code of how the code is suppose to look on SL coding playground?

1st Jun 2021, 1:40 PM
Shades😎
Shades😎 - avatar
4 ответов
+ 4
https://code.sololearn.com/WORnjymNptW6/?ref=app easiest way to. Make button onclick
2nd Jun 2021, 12:21 PM
Ayush
Ayush - avatar
1st Jun 2021, 1:53 PM
Vachila64☕
Vachila64☕ - avatar
+ 1
Vachila64☕ Thank you so much
1st Jun 2021, 5:12 PM
Shades😎
Shades😎 - avatar