title: How can I load a page via javascript?
body: <p>There is a list of stores, when users select a store from dropdown menu, they should go to the specific URL.</p>
  
  <p>Here is the javascript and HTML code but this is not working! What is the problem?</p>
  
  <pre><code>&lt;script&gt;
   function pageReady() {
  
      document.getElementById('store-id').onchange = function() { 
             var URL = "44805?id=57" 
             document.location = URL;
  
  };
  
      document.getElementById('store-id').onchange();
  }
  &lt;/script&gt;
  &lt;script src="/mcs/s/asset/34065/utils.js"&gt;&lt;/script&gt;
  &lt;link rel="stylesheet" href="/mcs/s/file/54985/dialogs.css" media="screen" /&gt; 
  &lt;script type="text/javascript" 
   src="http://maps.google.com/maps/api/js?sensor=true"&gt;&lt;/script&gt;
  </code></pre>