Recent Comments

Breaking News
Loading...

Alert

style="display:inline-block;width:468px;height:60px"
data-ad-client="ca-pub-2653565209371687"
data-ad-slot="4940986142">
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 .!

0 comments:

Post a Comment

 
Toggle Footer