title: positioning the prompt popup in javascript
body: <p>i have a javascript prompt like the following and i would like to bring the prompt center of the screen. How to do this in using javascript?</p>
  
  <pre><code>function showUpdate() {     
      var x;    
      var name=prompt("Please enter your name","");
  
      if ( name != null ) {
        x="Hello " + name + "! How are you today?";
        alert("Input : " + name );          
      }
  
  }
  </code></pre>
  
  <p>And this is how i call this :</p>
  
  <pre><code>&lt;a onclick = "showUpdate() " style="vertical-align: middle;" class="parent" href=""&gt;&lt;span&gt;5. Missed P/U Comments&lt;/span&gt;&lt;/a&gt;
  </code></pre>
  
  <p>it works find excepts the prompt goes to the left corner in <code>IE</code> and center in <code>Firefox</code>
  but i need to the same solution to work in both the browsers.</p>