© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
14 replies
The Fog from Human Resources

❔ Use Javascript in Blazor Server App

Hey, I just started developing Web Apps using Blazor but im current facing an issue
I have a Javascript file that controls my navigation bar (mobile responsiveness, animations etc) and I'd like to invoke it when the page loads (I've put it into the navbar in MainLayout.razor) but apparently it seems like the <script> tag won't work cause it "cant update dynamically", it's important that the whole JS file loads and not just the functions, because otherwise it would break some stuff
Big thanks in advance
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Using JavaScript with Blazor
C#CC# / help
2y ago
✅ Blazor and Javascript loading
C#CC# / help
2y ago
✅ Blazor App
C#CC# / help
2y ago