title: How to use href in javascript?
body: <pre><code>&lt;label&gt;
      &lt;input type="button" onclick="abc()" id="log" value='SUBMIT'&gt;
  &lt;/label&gt;
  &lt;script&gt;
      function abc() {
          google.script.run.withSuccessHandler(callback).processForm(document.forms[0]);
      }
  
      function callback(ste) {
          if (ste == "true") {
              var a = document.getElementById('log');
              document.write(a.value);
              document.write('&lt;a href="http://www.w3schools.com/js/js_htmldom_html.asp"&gt;do stuff&lt;/a&gt;');
          } else document.write("false");
      }
  &lt;/script&gt;
  </code></pre>
  
  <p>as i m using document.location &amp;&amp; window.location both are not working to switch page,is there any other method which can help me out to  </p>