title: How reload page after google extension
body: <p>I want  reload page after google extension.</p>
  
  <p>there is background page code:</p>
  
  <pre><code>chrome.runtime.onMessageExternal.addListener(
    function(message, sender, sendResponse) {
      if(message.areYouThere) sendResponse(true);
    }
  );
  </code></pre>
  
  <p>there is and add button code for webpage:</p>
  
  <pre><code>&lt;button onclick="chrome.webstore.install()"
        id="install-button" style="display:none;"&gt;
        Add to Chrome
      &lt;/button&gt;
      &lt;script&gt;
        if (chrome) {
          // The browser is Chrome, so we may need to show the button
          if(chrome.runtime &amp;&amp; chrome.runtime.sendMessage) {
            // Some extension is ready to receive messages from us
            // Test it:
            chrome.runtime.sendMessage(
              "itemID",
              {areYouThere: true},
              function(response) {
                if(response) {
                  // Extension is already installed, keep hidden
                } else {
                  // No positive answer - it wasn't our extension
                  document.getElementById('install-button').style.display = 'block';
                }
              }
            );
          } else {
            // Extension is not installed, show button
            document.getElementById('install-button').style.display = 'block';
          }
        }
      &lt;/script&gt;
  </code></pre>
  
  <p>i want reload page after google extension.
  were i must put this code to do this function </p>
  
  <pre><code>document.getElementById('install-button').addEventListener("click", function(e) {
    chrome.webstore.install(function() {
      // Installation successful
      location.reload();
    });
  }); 
  </code></pre>