title: Move focus to page element
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/3374914/move-focus-to-a-particular-field">Move focus to a particular field</a>  </p>
  </blockquote>
  
  
  
  <p>This should be an easy one. I'm trying to set the focus onclick to a <code>&lt;p&gt;</code> element on my page.</p>
  
  <p>My javascript looks like this:</p>
  
  <pre><code>function loadSubmit() {
      if (document.getElementById('uploaded_file').value == "") {
          this.setFocus("name");
      } else {
          var ProgressImage = document.getElementById('progress_image');
          document.getElementById("progress").style.visibility = "visible";
        //document.getElementById("progress").focus(); ?
          setTimeout(function () {
              ProgressImage.src = ProgressImage.src
          }, 100);
      }
  }
  </code></pre>
  
  <p>I would like to shift the focus of the page to 'progress_image' any suggestions on how to accomplish this?</p>
  
  <p>Thanks</p>