title: Alert Dialogue Box in Google Apps Script
body: <p>It is my understanding that Google Apps Script (GAS) has provided a popup dialogue box that corresponds to the alert dialogue box in client-side JS (See: <a href="http://www.mousewhisperer.co.uk/drivebunny/message-dialogs-in-apps-script/" rel="nofollow">http://www.mousewhisperer.co.uk/drivebunny/message-dialogs-in-apps-script/</a>) In trying to get acquainted with this dialogue box, I have prepared the test code shown below:</p>
  
  <p>Code.gs:</p>
  
  <pre><code>var validate=function() {
     Browser.msgBox('Hello, world!', Browser.Buttons.OK);  // See: http://www.mousewhisperer.co.uk/drivebunny/message-dialogs-in-apps-script/
  }
  function doGet() {
        return HtmlService.createTemplateFromFile('index').evaluate().setTitle('Test').setSandboxMode(HtmlService.SandboxMode.IFRAME)
      }
  </code></pre>
  
  <p>index.html:</p>
  
  <pre><code>&lt;div&gt;
   &lt;form&gt;
    &lt;input type="button" value="Click Me" onclick="validate"&gt;
   &lt;/form&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>When I click on the "Click Me" button, instead of seeing a popup dialogue box, nothing happens and an error is reported in the JS console complaining that "validate" is not defined.  Can anyone please tell me what I'm missing?  Thanks for any input.</p>
  
  <pre><code> ... doug
  </code></pre>