Here we use the eval() function as the backbone of a simple calculator. One table is used for the display. A second table holds the buttons for the keypad. The whole thing forms an attractive looking calculator. To test it, simply paste the code into an editor like notepad and…
HTML needs a script to do any math or display any numbers from a data source. Used alone, HTML can't do anything but control how a web page is displayed.
MidiMagic
Nearly a Senior Poster
3,363 posts since Jan 2007
Reputation Points: 730
Solved Threads: 184
Skill Endorsements: 1