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
A simple inline JavaScript confirm would suffice:
No need for an external function unless you are doing validation, which you can do something like this: