This article explains how to invoke JavaScript (JS) functions from .NET. For information on how to call .NET methods from JS, see Call .NET methods from JavaScript functions in ASP.NET Core Blazor.
Deprecated means that Microsoft plans to remove the feature or capability in a future major release. The feature or capability continues to work and is fully supported until it's officially removed.