title: How to pass a doGet(e) parameter to another function?
body: <p>I am able to capture a variable from the url of a published app script, but I am not sure how I can pass that variable to another function.   The below script will not run the onRun function if a variable is included.  My goal is to pass 2 variables, but one problem at a time.</p>
  
  <pre><code>function doGet(e) {
  
      var id = e.parameter.id;
      var minutes = e.parameter.min;
  
  
    var html = '&lt;p&gt;'
    +'&lt;button onClick=google.script.run.onRun('+id+')&gt;Run&lt;/button&gt;' // Does not work when clicked
      +'&lt;button onClick=google.script.run.onRun()&gt;Run without parameter&lt;/button&gt;'
    +'&lt;button onClick=google.script.run.turnOn()&gt;On&lt;/button&gt;'
    +'&lt;button onClick=google.script.run.turnOff()&gt;Off&lt;/button&gt;'
    +'&lt;/p&gt;';
  
    return HtmlService.createHtmlOutput(html).setSandboxMode(HtmlService.SandboxMode.IFRAME);
  
  }
  
  function onRun(id){
    Logger.log("id: "+id); 
  }
  </code></pre>