title: Bookmarklet - Add an input to middle of a URL?
body: <p>This is probably extremely simple but I am a total newbie. I use something like this to add an input to the end of an URL </p>
  
  <pre><code>javascript:
  (function() { 
      var val= prompt("Enter #",""); 
      if (val) 
          location="http://www.test.com?param="+escape(val);
  })()
  </code></pre>
  
  <p>But now I want to add something to the middle of another url like: </p>
  
  <pre><code>http://www.test.com/ENTERSOMETHINGHERE/html/stuff/
  </code></pre>
  
  <p>I have no clue what I am doing.</p>