

# Invoke a Lambda function from a browser
<a name="example_cross_LambdaForBrowser_section"></a>

The following code example shows how to invoke an Amazon Lambda function from a browser.

------
#### [ JavaScript ]

**SDK for JavaScript (v2)**  
 You can create a browser-based application that uses an Amazon Lambda function to update an Amazon DynamoDB table with user selections.   
 For complete source code and instructions on how to set up and run, see the full example on [GitHub](https://github.com/awsdocs/aws-doc-sdk-examples/tree/main/javascript/example_code/lambda/lambda-for-browser).   

**Services used in this example**
+ DynamoDB
+ Lambda

**SDK for JavaScript (v3)**  
 You can create a browser-based application that uses an Amazon Lambda function to update an Amazon DynamoDB table with user selections. This app uses Amazon SDK for JavaScript v3.   
 For complete source code and instructions on how to set up and run, see the full example on [GitHub](https://github.com/awsdocs/aws-doc-sdk-examples/tree/main/javascriptv3/example_code/cross-services/lambda-for-browser).   

**Services used in this example**
+ DynamoDB
+ Lambda

------

For a complete list of Amazon SDK developer guides and code examples, see [Using Lambda with an Amazon SDK](sdk-general-information-section.md). This topic also includes information about getting started and details about previous SDK versions.