| Java Script |
 |
| Views 35 |
|
|
|
|
javascript dynamically generated calculator - via DOM firefox compatible (IE is not supported)
|
|
The project is to implement a simple calculator using HTML and JavaScript program. A
sample layout for the calculator is shown below. I t has the four arithmetic functions, +, -, *
(for multiply) and / (for division). There are the 10 digits, the decimal point button and the
equals sign to get the result.
Instructions
1. For dynamic creation of the “TABLE” there are two approaches
a. Table Object Model
b. Document Object Model (DOM)
Use DOM as DOM is powerful in that it allows you to use script to manipulate any element of a document.
|
|
|
| Java Script |
 |
| Views 95 |
|
|
|
|
|
| Java Script |
 |
| Views 115 |
|
|
|
|
|