Hello @Jseh R ,
You could refer to the document- ASP.NET Core Blazor JavaScript interoperability (JS interop) | Microsoft Learn, it explains general concepts on how to interact with JavaScript in Blazor apps.
For more details, please see:
Call JavaScript functions from .NET methods in ASP.NET Core Blazor | Microsoft Learn
Call .NET methods from JavaScript functions in ASP.NET Core Blazor | Microsoft Learn
In addition, there is a sample at GitHub, you can check the source code.
Best Regards,
Wenyan Zhang
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.