This example uses an XMLHttpRequest object to dynamically look up of the city and state associated with a U.S. ZIP code entered by the user.
Use your browser's View Source option to see the full source code.