XTC: Fehlermeldung "=null oder kein objekt

Beitrag lesen

Hi

das Problem hatte ich auch schonmal.
Bei mir hab ich dann das script so gestaltet:
document.all.forms[0].value="text"
Wobei das Textfeld bei mir das erste Element in der Form war (also um genau zu sein das nullte)

Ich habe nur das eine Textfeld ...

Du meinst ich sollte es so schreiben ....

-------------------------------------------------
<SCRIPT language="JavaScript">
function enter_code(code) {
document.all.form[0].value += " "+code+" ";
document.all.form[0].focus();
}
</SCRIPT>
--------------------------------------------------

mfg XTC