Please try this code @timoo23
document.querySelector('#my-form').addEventListener('submit', function(event) {
const email = document.querySelector('#email').value;
if (!email.includes('@')) {
event.preventDefault();
alert('Please enter a valid email address.');
}
});
Please replace the #my-form with your form id and email with your email input id.
Best regards
K.K