+ 1
How to make alert pop up when forum is submited
how to pop up an alert when the user fill the forum informations and click on submit
12 ответов
+ 2
Use the onsubmit method.
form.onsubmit = () => {
window.alert("That's how it's done ")
}
+ 3
Perfect!!
+ 2
HTML:
<form>
...
<input type="submit" value="submit" onclick="fun()"/>
</form>
JS:
function fun() {
alert("hi");
}
+ 2
Ouardi Yacine tell me if it works
+ 1
thanks I'll try it
+ 1
Tell me if it works
+ 1
it didn't
+ 1
it did thanks
+ 1
Please my answer the best,because I helped you!
+ 1
done