Window confirm Method in javascript

I want confirmation alert before doing submition of form?
Ankur Rajput
Asked 13-11-2019
46

Answer (1)
<script> function confirmAlert(){ var x = confirm("Are you sure to submit this form."); if(x){ /* write your code here that you want to perform*/ } } </script>
Ankur Rajput
Asked 20-07-2018
45 Likes
Comments
Write comment

Submit your answer