title: Run a Google Apps Script from Chrome Extension
body: <p>I'm new to Google Chrome Extension development and I want to run an apps script from the extension when I click the button from extension. But I'm not sure how to do it and I've checked the guide but couldn't catch the idea. Here are my codes,</p>
  
  <p><strong>script.js</strong></p>
  
  <pre><code>$(document).ready(function () {
      $('#btnGet').click(function () {
          $(document).load('https://script.google.com/macros/s/AKfycbwpkBW7qKZBeJ011C7j3le4vV8D0SEHu9709mWtEMzJgrJmHnaR/exec');
      });
  });
  </code></pre>
  
  <p><strong>Apps Script</strong></p>
  
  <pre><code>function doGet(e){
    function newEntry() {
      var ss = SpreadsheetApp.getActiveSpreadsheet();
      var sheet = ss.getActiveSheet();
      var lr = sheet.getLastRow();
      sheet.getRange(lr+1, 1, 1, 3).setValues([["First Name", "Last Name", "Email"]]);
      Browser.msgBox("New Entry Added!");
    }
  }
  </code></pre>
  
  <p>I've managed to run codes from my <code>script.js</code> but I'm not sure how can I run codes from my apps script. How can I run the codes from my apps script? </p>