title: window.location.href not working when href is same page
body: <p>I have an input form which takes parameters for a report.  I submit these to the same page. When the report is generated I would like to move the user to the top of the report.  However, javascript is not going to the anchor.  When my href is a different but otherwise identical page the anchor works, but when it is the same page it does not.  Example:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  function moveto() {
  window.location.href = "frag6.cfm#betty";
  }
  &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;script type = "text/javascript"&gt;
  moveto()
  &lt;/script&gt;
  &lt;cfset subtest = ArrayNew(1)&gt;
  &lt;cfloop from = "1" to = "10" index = "m"&gt;
  &lt;cfloop from = "1" to = "3" index = "i"&gt;
  &lt;cfloop from = "1" to = "4" index = "j"&gt;
  &lt;cfset test[i][j] = "#m#_#i#_#j#"&gt;
  &lt;/cfloop&gt;
  &lt;/cfloop&gt;
  &lt;/cfloop&gt;
  
  &lt;cfdump var = "#test#"&gt;
  &lt;cfloop from = "1" to = "3" index = "i"&gt;
  &lt;cfloop from = "1" to = "4" index = "j"&gt;
  &lt;cfset subtest[j] = test[i][j]&gt;
  &lt;/cfloop&gt;
  
  &lt;cfdump var = "#subtest#"&gt;
  &lt;/cfloop&gt;
  &lt;a name = "betty"&gt; here I am &lt;/a&gt;
  </code></pre>