Hallo Zusammen,
Auch nicht! Sondern:
if(checkForm(this)) popUp(); else return false;
Du hast Recht.
Ich habe aber das ganze jetzt so gemacht und es funkz.
Danke noch Mal und Gruß.
Messmar
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled</title>
<script>
function popUp(){
window.open('','xxx','width=300, height=500, scrollbars=0, toolbar=0, location=0');
}
function checkForm(formObj){
this.formObj
var inputEntry = formObj.thistext.value;
if(inputEntry == ''){
alert('Value is missing');
return false;
}else{
alert('Fine');
formObj.target='xxx';
return true;
}
}
function allTogether(formObj){
if(checkForm(formObj)) popUp(); else return false;
}
</script>
</head>
<body>
<form action="seite.htm" method="post" onsubmit="allTogether(this)">
<input type="text" name="thistext" value="">
<input type="Submit" value="Senden">
</form>
</body>
</html>