Use JavaScript Interop in Blazor

ASP.NET Core Blazor allows you build SPAs using C#, HTML, and CSS. Although you can develop Blazor apps without using any JavaScript, at times you might want to invoke some JavaScript code from your Blazor components. Moreover, the JavaScript code might also want to invoke some C# methods. To that end this article quickly illustrates how this can be accomplished using Blazor's JavaScript interop features.

http://www.binaryintellect.net/articles/6f1c4298-6564-4ca2-b355-c8327511babc.aspx