Aside from putting Javascript in your web pages that run in visitors' to your web pages browsers, you can run server side programs called from browsers. This is referred to as “CGI Programming” (CGI stands for “Common Gateway Interface”) which you can do here on SDF.
Here is good starter information in the SDF FAQ system: https://sdf.org/?faq?WEB?02
Here are some further tips: