title: Having trouble directing button to google
body: <p>I am having trouble linking a button to a page using javascript and html. I first add a button to a new page, then call the function. The button displays how I want it to in the new, blank display I created, which won't be shown here. All I need to do is when I click on the button I created, direct open up google.</p>
  
  <p>Here is my javascript code(which isn't working, just posting what I have):</p>
  
  <pre><code>function addGoogle() {
              page += "&lt;button&gt;Google Search&lt;/button&gt;";
              &lt;button onclick="window.location= 'http://www.google.com';"
          }
  </code></pre>
  
  <p>Here is my html code just in case: </p>
  
  <pre><code>     &lt;tr&gt;
          &lt;td&gt; Google&lt;/td&gt;
          &lt;td&gt; Google Search&lt;/td&gt;
           &lt;td&gt; &lt;button onclick="addGoogle()"&gt;Lets Search&lt;/button&gt; &lt;/td&gt;
      &lt;/tr&gt;
  </code></pre>
  
  <p>Thanks!</p>