Hello everyone,
I have a quick question about using JavaScript in Astro. As I understand it, a .astro file does not allow JavaScript to run by default at runtime. If I include JavaScript in the designated area within the ---, this code is utilized and processed during build time, but is no longer available at runtime.
However, this assumption seems to conflict with the information found here: https://docs.astro.build/en/recipes/build-forms/. In this guide, JavaScript is used on an Astro page to validate and handle forms.
If a written explanation is too cumbersome, I'm also open to a quick call.
Thank you in advance!
Best regards,
Henkel