title: Need example of calling AWS Lambda from JavaScript
body: <p>Just need an example of how to call AWS Lambda from JavaScript running in a browser and display function result in JavaScript console. Incredibly, I cannot find any examples on Google or from AWS documentation.</p>
  
  <p>My use case is that I have an HTML form. When the form is submitted, I want to use Lambda to process the form inputs. Assuming that the Lambda function finishes with no errors, I then want to take the user to a thank you page.</p>
  
  <p>Please include a complete HTML example, not just a code snippet.</p>