The document contains code for a simple calculator application with functions to add, subtract, multiply and divide two numbers entered in text fields. It uses JavaScript to get the values from the text fields, perform the mathematical operation and output the result in a third text field. The calculator has buttons to perform each operation and a clear button to reset the fields.