How can I call another HTML page from another html page in google appscript

I have created two pages in my project named as "Input.html" and "output.html" wherein on click submit button in input.html, the output will print in output.html

however I do not have idea that how can I call another page from one page

code.gs

function doGet() {
  return HtmlService.createTemplateFromFile('Input')
      .evaluate().setTitle("GL StyleGuide").setFaviconUrl("https://fonts.ab24dp.png");
}

Have a text area in Input page and a submit button on click of which I want my output to print on output.html page.
Modified : Sample html for Input.html is as follows

<div>
  <label id="label">Please Enter CSS</label>
      <textarea id="input-textarea"></textarea>
      
      <?var url = ScriptApp.getService().getUrl();?><a href='<?=url?>?v=form'><input type='button' id="submit" name='button' onclick="addRow()" value='Get Style Guide'></a>      
</div>

25 thoughts on “How can I call another HTML page from another html page in google appscript”

Leave a Comment