+ 1

What?

How do you make it so that when the submit button is pressed then a alert pops up on the css, HTML and JavaScript?

17th Jun 2018, 3:49 AM
caden
2 Answers
+ 3
<button onClick="popAlert()"> <script> function popAlert() { alert("button pressed"); } </script>
17th Jun 2018, 4:21 AM
Andre Daniel
Andre Daniel - avatar
+ 2
function al() { alert("You pressed the submit button"); } <input type="button" name="button" onClick="al()">submit </input>
17th Jun 2018, 3:52 AM
‎ ‏‏‎Anonymous Guy