1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
|
<head>
<script language="JavaScript">
....
function funcspec(Fonction)
{
....
if(Fonction == "suppr")
{
var y = window.document.Calculette.affiche.value;
var x = window.document.Calculette.affiche.lenght;
window.document.Calculette.affiche.value = y.substring(x)
}
}
</script>
</head>
<body>
<form name="Calculette">
<table border=5 cellpadding=8 align=center>
<tr>
<td bgcolor=#FFFFF><input align=center name="affiche" size=40 maxlength=16></td>
</tr>
<tr>
<td bgcolor=#FFFFF>
<table>
...
<tr>
...
<td width=70><input type=button value=" R " onClick="funcspec('suppr')"></td>
</tr>
...
</body> |