Dli ko i.t., comsci or comp e ....nag download lng ko ug pdf aning html,css ug javascript kay na intriga ko ug nakat-on tawn ko gamay.
Naghimo ko ug calcu dri sah akong html file...mo gana man pero akong ganahan kay kung mo type kah ug letters(a to z) instead of integers mo error cya. nasabtan nako gamay ang alert ug if statement pero ga libug ko asa ni nako i butang.
<html>
<body>
<center>
<form name=bruce>
<table border="1"><tr>
<td colspan="3" width="75%"><input name="wayne" type="text">
<td width="25%"><input type="button" style="height: 25px; width: 50px" onClick="document.bruce.wayne.value=''" value="C">
</tr>
<tr>
<td width="25%" align="center" ><input type="button" style="height: 25px; width: 50px" onClick="document.bruce.wayne.value+='1'" value="1">
<td width="25%"><input type="button" style="height: 25px; width: 50px" onClick="document.bruce.wayne.value+='2'" value="2">
<td width="25%"><input type="button" style="height: 25px; width: 50px" onClick="document.bruce.wayne.value+='3'" value="3">
<td width="25%"><input type="button" style="height: 25px; width: 50px" onClick="document.bruce.wayne.value+='+'" value="+">
</tr>
<tr>
<td width="25%"><input type="button" style="height: 25px; width: 50px" style="height: 25px; width: 50px" onClick="document.bruce.wayne.value+='4'" value="4">
<td width="25%"><input type="button" style="height: 25px; width: 50px" style="height: 25px; width: 50px" onClick="document.bruce.wayne.value+='5'" value="5">
<td width="25%"><input type="button" style="height: 25px; width: 50px" onClick="document.bruce.wayne.value+='6'" value="6">
<td width="25%"><input type="button" style="height: 25px; width: 50px" onClick="document.bruce.wayne.value+='-'" value="-">
</tr>
<tr>
<td width="25%"><input type="button" style="height: 25px; width: 50px" onClick="document.bruce.wayne.value+='7'" value="7">
<td width="25%"><input type="button" style="height: 25px; width: 50px" onClick="document.bruce.wayne.value+='8'" value="8">
<td width="25%"><input type="button" style="height: 25px; width: 50px" onClick="document.bruce.wayne.value+='9'" value="9">
<td width="25%"><input type="button" style="height: 25px; width: 50px" onClick="document.bruce.wayne.value+='*'" value="*">
</tr>
<tr>
<td width="25%"><input type="button" style="height: 25px; width: 50px" onClick="document.bruce.wayne.value+='.'" value=".">
<td width="25%"><input type="button" style="height: 25px; width: 50px" onClick="document.bruce.wayne.value+='0'" value="0">
<td width="25%"><input type="button" style="height: 25px; width: 50px" onClick="document.bruce.wayne.value=eval(bruce.way ne.value);" value="=">
<td width="25%"><input type="button" style="height: 25px; width: 50px" onClick="document.bruce.wayne.value+='/'" value="/">
</tr>
<table>
</body>
</html>