Caspio minds
I have an app that has a javascript validation in the footer of a submission form. It basically prevents someone from making reservations on previous dates.
It's something like:
if (newdate < newtoday ) {
alert("Choose a future date.");
}
It works fine. However, I just found out that after 3 consecutives tries, the alert message box will come up with a checkbox with this option: "prevent this page from creating additional dialogs"
If the user choose to prevent addtional dialogs, this system will bypass my code, and the user will be able to make reservations on past dates.
Is there anyway to prevent the alert function to allow users avoiding dialogs?
I also tried document.getElementById('msg').innerHTML instead the alert function but it really does not work well.
I am using Wordpress and Firefox.
Any help will be higly appreciated.