input element of type text with id attribute accumulator.
digitbuttons:
input elements of type button with value attributes 0through
9and id attributes
key_0through
key_9.
function buttons with id attributes plus,
minus,
times, and
divide.
clearand
enter.
clearbutton should cause the accumulator value to get set to the empty string.
digitbutton should cause the digit to get appended to the accumulator value.
functionbutton should cause the accumulator value saved in a local variable and the operation to get saved in another. The accumulator should also be cleared.
enterbutton should cause the saved value and the current value of the accumulator to be combined using the saved operation. The result should now appear in the accumulator.
calculator.html file
in a Chapter18 subdirectory of your LABS directory.index.html file in your LABS directory to have a link
to your calculator.html page.
Always turn off your computer and screen before leaving the room.