Input/Output Shell

JavaScript Input/Output Shell

This HTML/JavaScript file shows how a generic text I/O application can be embedded in a web page for interaction with JavaScript-compatible browsers. In this simple example the "processing" of input is just conversion to upper case, but any text I/O processing may be substituted in the processInputToOutput() function. The current script causes each new output to replace the previous output in the output area, but a provided appendOutputAreaContents() function could be used instead to provide a cumulative "session" output listing. View the source of this page to see the JavaScript definitions.

The JavaScript/HTML example was created by Lee Spector.