title: How to submit form with concatenated URL?
body: <p>I'm fairly new to the whole Javascript scene. Followed along with those online javascript tutorial things like code academy offers so I'm going by what I learned off of there and what I have read through other tutorials. Read though a few other posts to try and help me but I can't figure it out</p>
  
  <p>So here's my question,</p>
  
  <p>I am trying to take a form input, send it to a javascript file, then the javascript file returns a string which then I wish to reload the frame with. I'm attempting to make a simple chrome extension for me and my friends.</p>
  
  <p>When I click "View Grade!" I get an error:</p>
  
  <pre><code>No webpage was found for the web address: chrome-extension://gcgddggimojbfgpbdmpfkmiofmpinjgb/location.href=getURL(account)?
  </code></pre>
  
  <p>and I can't determine if my javascript isn't working right or I just don't know how to send to a URL outside the "chromium" (as I call it) world.</p>
  
  <p>This is my html file:</p>
  
  <pre><code>&lt;form action="location.href=getURL('account')"&gt;
      PSU Account (i.e. xyz123): &lt;input type:"text" id="account"&gt;
     &lt;input type="submit" value="View Grade!"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>And this is my javascript file:</p>
  
  <pre><code>function getURL(account) {
      var psuAccount = document.getElementById(psuAccount);
      // I changed strA to the ***.***.*** for this post
      var strA = 'https://***.***.***/section/Gradebook/Student/default.aspx?userId=';
      var strB = '&amp;reportMode=true';
      var newURL = strA + psuAccount + strB);
      return(newURL);
  }
  </code></pre>