Wenn ich das richtig verstanden habe, willst du das hier:
HTML-Code:
<form name="test">
<input size="10" name="Ausgabe" readonly><br>
<table border="0">
<tr>
<td>
<input style="height:20px;width:20px" type="button" name="zahl" value="1" onClick="this.form.Ausgabe.value+=1;">
</td>
<td>
<input style="height:20px;width:20px" type="button" name="zahl" value="2" onClick="this.form.Ausgabe.value+=2;">
</td>
<td>
<input style="height:20px;width:20px" type="button" name="zahl" value="3" onClick="this.form.Ausgabe.value+=3;">
</td>
</tr>
<tr>
<td>
<input style="height:20px;width:20px" type="button" name="zahl" value="4" onClick="this.form.Ausgabe.value+=4;">
</td>
<td>
<input style="height:20px;width:20px" type="button" name="zahl" value="5" onClick="this.form.Ausgabe.value+=5;">
</td>
<td>
<input style="height:20px;width:20px" type="button" name="zahl" value="6" onClick="this.form.Ausgabe.value+=6;">
</td>
</tr>
<tr>
<td>
<input style="height:20px;width:20px" type="button" name="zahl" value="7" onClick="this.form.Ausgabe.value+=7;">
</td>
<td>
<input style="height:20px;width:20px" type="button" name="zahl" value="8" onClick="this.form.Ausgabe.value+=8;">
</td>
<td>
<input style="height:20px;width:20px" type="button" name="zahl" value="9" onClick="this.form.Ausgabe.value+=9;">
</td>
</tr>
<tr>
<td colspan="2" align="right">
<input style="height:20px;width:20px" type="button" name="zahl" value="0" onClick="this.form.Ausgabe.value+=0;">
</td>
<td>
<input style="height:20px;width:20px" type="button" name="zahl" value="C" onClick="if(this.form.Ausgabe.value == '1234567890') document.location.href = 'geheim.html';">
</td>
</tr>
</table>
</form>