Hallo,
if (value="@")
probier mal sowas wie
if(document.Formular.Eingabe.value.indexOf('@') == -1) {
alert("Fehler! Eine E-Mailadresse ist wie folgt aufgebaut: xxxxx@xxx.de");
document.Formular.Eingabe.focus();
return false;
} else {
window.location.href="mailok.html";
}
Du kannst aber auch noch auf Sonderzeichen prüfen...
if(document.Formular.Eingabe.value.indexOf('ü') != -1
|| document.Formular.Eingabe.value.indexOf('ä') != -1
|| document.Formular.Eingabe.value.indexOf('ö') != -1
|| document.Formular.Eingabe.value.indexOf(' ') != -1
|| document.Formular.Eingabe.value.indexOf('ß') != -1) {
... oder so ähnlich
Hoffe, ich konnte dir helfen
MFG
Philipp