Apps Script公式リファレンス: Apps Script Reference |障害・課題追跡: IssueTracker |Google Workspace: Status Dashboard


Creating HTML with Google Apps Script(createHtmlOutputFromFile)

This is an example of code that creates a simple HTML page with Google Apps Script's HtmlService.createHtmlOutputFromFile().

The output HTML page will be as follows.

The script editor will look like this:
function doGet() {
return HtmlService.createHtmlOutputFromFile('index').setTitle("Title");

<!DOCTYPE html>
textarea {
width: 80vw;
height: 80vh;
font-size: 15px;
function myFunction() {
console.log("This is a log message.");


HTML Service: Create and Serve HTML

Related pages

Latest post

Google Slidesで現在選択している表に値を入れたい3 - Insert values into the active table3

Google Slidesで現在選択している表に値を入れたい2 - Insert values into the active table2 上記のリンク先では、値の数に応じて行を追加しました。 In the linked article above, rows were add...