Kann nicht meine Absenden-Taste auf diese HTML-Seite bei der Validierung zu routen ... Täter -----------------> zurück wahr; window.location.href = "Info/index.html";Rückkehr wahr; NICHT Routing zum Link
function validate()
{
if(document.myLogIn.user_id.value == "")
{
alert("Please provide your Customer ID!");
document.myLogIn.user_id.focus() ;
return false;
}
if(document.myLogIn.password.value == "")
{
alert("Please provide your Password!");
document.myLogIn.password.focus() ;
return false;
}
return true; window.location.href= "Info/index.html";
}
Haben Sie versucht, 'window.location.href =" Info/index.html "'; vor der Rückkehr Aussage? –
Ja leider nicht funktioniert ... –