<

scriptwelt.org das JavaScript Archiv

Navigation
Startseite
Audio & Sound
Formulare
Cookies
Fenster & Frame
Grafik & Text
Navigation
Suche Scripts
Fun und Spiele
Buttons
Diverse
Tutorials

Kontakt
eine Mail an ScriptWelt.org
Webhosting
Tipps zur Providerwahl und zum Webspace

JavaScript in eine HTML Datei einbinden

Sind JavaScripts sicher?

Links zum Thema JavaSript

Impressum
impressum

Formulare JavaScript / Eingabefeld als Nummernblock

Eingabefeld als ein Nummernblock. Ist zwar kein JavaScript, aber nett gemacht.
Autor: unbekannt
zur Demo

 

<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=this.form.Ausgabe.value+1">
</td>
<td>
<input style="height:20px;width:20px" type="button" name="zahl" value="2" onClick="this.form.Ausgabe.value=this.form.Ausgabe.value+2">
</td>
<td>
<input style="height:20px;width:20px" type="button" name="zahl" value="3" onClick="this.form.Ausgabe.value=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=this.form.Ausgabe.value+4">
</td>
<td>
<input style="height:20px;width:20px" type="button" name="zahl" value="5" onClick="this.form.Ausgabe.value=this.form.Ausgabe.value+5">
</td>
<td>
<input style="height:20px;width:20px" type="button" name="zahl" value="6" onClick="this.form.Ausgabe.value=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=this.form.Ausgabe.value+7">
</td>
<td>
<input style="height:20px;width:20px" type="button" name="zahl" value="8" onClick="this.form.Ausgabe.value=this.form.Ausgabe.value+8">
</td>
<td>
<input style="height:20px;width:20px" type="button" name="zahl" value="9" onClick="this.form.Ausgabe.value=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=this.form.Ausgabe.value+0">
</td>
<td>
<input style="height:20px;width:20px" type="button" name="zahl" value="C" onClick="this.form.Ausgabe.value=''">
</td>
</tr>
</table>
</form>