title: Redirecting to another Google Script webapp after button click
body: <p>I'm trying to redirect a google app script web app onto another app script after button click. I have tried the following:</p>
  
  <pre><code>&lt;button onclick="myFunction()"&gt;Replace document&lt;/button&gt;
  &lt;script&gt;
  function myFunction() {
    location.replace("https://www.w3schools.com")
  }
  &lt;/script&gt;
  </code></pre>
  
  <p>The error is that google script refused to connect. When checking inspect element, it says "X-Frame Options"  to 'same-origin'. </p>
  
  <p>Is there a work around on this? </p>
  
  <p>I could use  tags but how do I display it after an alert?</p>