title: How to redirect to another webpage from Google Apps Script Gadget?
body: <p>I'm building a web application in Google Sites. Currently, I have two forms, the first one loads a Spreadsheet and displays it as a table, then when you select a row from the table, the script calls another Web App with a GET request and with a few parameters (as <code>?rowIndex=X&amp;columnIndex=..</code>).</p>
  <p>This is working fine if I deploy the first form as a Web App. But if I insert the first script as a &quot;Google Apps Script Gadget&quot; in my Google Sites webpage it seems that is embedded as an Iframe that cannot redirect to other webpages/scripts (it just shows a blank iframe).</p>
  <p>Is there any way to solve this without merging both scripts in one?</p>
  <p>For the redirect, I'm using javascript in the HTML form.</p>
  <pre><code>windows.location=&quot;secondScriptUrl&quot;+&quot;?parameters...&quot; 
  </code></pre>
  <p>and the second script just generates the HTML from the <code>doGet</code> function</p>
  <pre><code>function doGet(e) {
     return HtmlService.createTemplateFromFile('index').evaluate();
  }
  </code></pre>