--- title: Call .NET methods from JavaScript functions in ASP.NET Core Blazor author: guardrex description: Learn how to invoke .NET methods from JavaScript functions in Blazor apps. monikerRange: '>= aspnetcore-3.1' ms.author: riande ms.custom: mvc, devx-track-js ms.date: 08/12/2020 no-loc: [Kestrel, appsettings.json, "ASP.NET Core Identity", cookie, Cookie, Blazor, "Blazor Server", "Blazor WebAssembly", "Identity", "Let's Encrypt", Razor, SignalR] uid: blazor/call-dotnet-from-javascript --- # Call .NET methods from JavaScript functions in ASP.NET Core Blazor A Blazor app can invoke JavaScript functions from .NET methods and .NET methods from JavaScript functions. These scenarios are called *JavaScript interoperability* (*JS interop*). This article covers invoking .NET methods from JavaScript. For information on how to call JavaScript functions from .NET, see . [View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/blazor/common/samples/) ([how to download](xref:index#how-to-download-a-sample)) > [!NOTE] > Add JS files (`