Select a number: and another number: Their sum is:

See the document JavaScript and HTML: possibilities and caveats for the context of this example.