+ 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?
2 Respostas
+ 3
<button onClick="popAlert()">
<script>
function popAlert() {
alert("button pressed");
}
</script>
+ 2
function al() {
alert("You pressed the submit button");
}
<input type="button" name="button" onClick="al()">submit </input>