title: How can I remove the comma from this query string's url?
body: <pre><code>&lt;script type="text/javascript"&gt;
      //GET DATA FROM URL ...index.html?PageTitle,YOUTUBE_ID
      var DATA = window.location.search.replace("?", "");
      //STORE IN ARRAY FOR EASY ACCESS AND EXPANDABILITY
      DATA = DATA.split(",");
      //LOAD THE PAGE TITLE
      document.title = DATA[0]
      //UPDATE THE IFRAME SRC AFTER THE DOCUMENT LOADS
      window.onload = function() {
          var YouTube = document.getElementById('YouTube');
          YouTube.src = "http://www.youtube.com/embed/" + DATA[1]
      };
  &lt;/script&gt;
  </code></pre>
  
  
  
  <pre><code> &lt;div class='content'&gt;
       &lt;iframe id="YouTube" width="853" height="480"
   frameborder="0" allowfullscreen&gt;
   &lt;/div&gt;
  </code></pre>
  
  <p>I've got this code above, which allows me to change my websites embedded video depending on what the user inputs in the url. </p>
  
  <p>The standard url goes <code>www.mysite.com/index.html/?,</code> and then obviously the video code on the end.  </p>
  
  <p>How could I rewrite this code so there is no comma after the question mark? </p>
  
  <p>or if possible no question mark at all so just <code>www.mysite.com/index.html/videocode</code></p>
  
  <p>NOTE: the comma is intentional in the standard url example.</p>