
strong textsimple calculator in javascript

Javascript Calculator
<html> <form name="calculator"> <table border=4> <tr> <td> <input type="text" name="text" size="18"> <br> </td> </tr> <tr> <td> <input type="button" value="1" onclick="calculator.text.value += '1'"> <input type="button" value="2" onclick="calculator.text.value += '2'"> <input type="button" value="3" onclick="calculator.text.value += '3'"> <input type="button" value="+" onclick="calculator.text.value += ' + '"> <br> <input type="button" value="4" onclick="calculator.text.value += '4'"> <input type="button" value="5" onclick="calculator.text.value += '5'"> <input type="button" value="6" onclick="calculator.text.value += '6'"> <input type="button" value="-" onclick="calculator.text.value += ' - '"> <br> <input type="button" value="7" onclick="calculator.text.value += '7'"> <input type="button" value="8" onclick="calculator.text.value += '8'"> <input type="button" value="9" onclick="calculator.text.value += '9'"> <input type="button" value="*" onclick="calculator.text.value += ' * '"> <br> <input type="button" value="c" onclick="calculator.text.value = ''"> <input type="button" value="0" onclick="calculator.text.value += '0'"> <input type="button" value="=" onclick="calculator.text.value = eval(calculator.text.value)"> <input type="button" value="/" onclick="calculator.text.value += ' / '"> <br> </td> </tr> </table> </form> </html>

Dear Deepak Sir,
Can u please give me a simple calculator program for android phone? i have seen your calculator program in swing and i have that type of calculator..i have sending that java program to u again ,please advice me that what should i change from that program?
thanking you, Manoj
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.