sideCategory1

Breaking News
Loading...
Tuesday 23 July 2013

Make a simple calculator in HTML using VBScript

23:21

This is a very simple calculator made with HTML and coded with VBScript. This hta file simply evaluates the expression in the text box. The expression can be entered using the mouse to click the buttons or else from the keyboard. To prevent the chance of invalid data being entered, only numerical keys and the signs are allowed on the keyboard. Also you can use Enter key to evaluate the expression and C to clear the text box.

To make the calculator just save the following code with a .hta extension using notepad. Hope this code helps you improve your scripting!



Done.! Enjoy .!
 
Toggle Footer