This page illustrates how contents of a page element named with a CSS id may be dynamically modified. It also illustrates that form data can be processed on the client side without actually ever submitting that data back to the server.
In the field below, enter an integer and then select any position on the page outside the text box. At that moment the page will display the factorial of that integer. A word of warning, if you feel this example is not working properly, play with both 'enter' and 'tab' keys and think about what happens for each.
Factorial will appear here when you enter a number above.