CISC 1400: Dynamic Web Page (with JavaScript)

Perform Some Calculation

In this unit, simple examples of using JavaScript to carry out some caclulation are shown.

Please use View Page Source to see the source file and the JavaScript.

Example 1: inch to meter conversion

Enter length in inch:

Example2: Decimal to Binary/Octal/Hexadecimal

For example, the following script is from JavaScript Kit.

Enter Decimal Number: