HTML Service: Communicate with Server Functions | Apps Script | Google for Developers
Learn how to use google.script.run to call server-side Apps Script functions from client-side HTML Service pages.