hi, da ich mich mit javascript so gut wie gar net auskenne hier mal ne simple frage:
WARUM FUNKTIONIERT DAS NICHT ;-)
<SCRIPT LANGUAGE=JavaScript>
function resetinput(form) {
form.submit();
form.reset();
form.chat.value=""; form.chat.focus();
form.chat.select();
return (false);
</SCRIPT>
<form name="chatform" method="post" action="chat.php" target="posts" onSubmit="return resetinput(this)">
<input type="text" name="chat" >
<input type="hidden" name="nick" value="<?php echo $nick; ?>">
<input type="hidden" name="action" value="posts">
<input type="hidden" name="color" value="<?php echo $color; ?>">
<input type="button" name="Submit" value="Senden" >
</form>
Das formular allein funktioniert, aber ich komme mit dem java nicht zurecht.
freue mich auf hinweise
bernd