A couple of years before JavaScript was invented, a specification called the Common Gateway Interface (CGI) enabled an early form of interactivity for web pages.
https://webdevelopmenthistory.com/1993-cgi-scripts-and-early-server-side-web-programming/