+ 7

msgbox-html

can someone tell me what attribute can be used in html so that when we click on a button (egs: submit).. a msg pops up saying something...(just like in visual studio)

30th Sep 2018, 3:24 PM
Nimit Sandeep Jhunjhunwala
Nimit Sandeep Jhunjhunwala - avatar
3 Answers
+ 2
#html <button onclick=popup()>Click Here</button> #JavaScript <script> const popup = () => { alert('This is a popup'); } </script>
30th Sep 2018, 3:45 PM
Ulisses Cruz
Ulisses Cruz - avatar
+ 7
Thanks alott
30th Sep 2018, 3:47 PM
Nimit Sandeep Jhunjhunwala
Nimit Sandeep Jhunjhunwala - avatar
+ 6
Ig finaallly i would be able to post my first coding lol
30th Sep 2018, 3:49 PM
Nimit Sandeep Jhunjhunwala
Nimit Sandeep Jhunjhunwala - avatar