For a simple form with an alert that asks if fields were filled out correctly, I need a function that does this:
Shows an alert box when button is clicked w
The issue pointed in the comment is valid, so here is a different revision that's immune to that:
function show_alert() { if(!confirm("Do you really want to do this?")) { return false; } this.form.submit(); }