Scripts can be used, but they are at the server.

The submit button, or a submit event (Javascript), in HTML. The browser is doing it. It runs with a GET or POST request to a (usually) CGI script or program at the server.