title: Javascript Popup Focus?
body: <p>Forgive me as I am not a programmer and don't understand a ton about this. </p>
  
  <p>I have tried searching but can't seem to find the problem I am having.</p>
  
  <p>So I have a really simple pop up using Javascript: </p>
  
  <pre><code>function newPopup(url) {
  popupWindow = window.open(
  url,'popUpWindow3','height=500,width=900,left=10,top=10,resizable=yes,scrollbars=yes,toolbar=no,menubar=no,location=no,directories=no,status=no')
  }
  </code></pre>
  
  <p>Which I call on with:</p>
  
  <pre><code>onclick="JavaScript:newPopup('images/product-&lt;?php echo $pro['id'];?&gt;.jpg');"&gt;
  </code></pre>
  
  <p>It works well except if they click for the pop up and return to the page the next click updates the first pop up window and the user must find the window that contains the image they selected. If they had closed the window it will re appear in the foreground but if they return to the main site without closing the window the content updates in the background.</p>
  
  <p>I want the pop-up window to come back into the foreground when someone clicks it, regardless.</p>
  
  <p>Is there an easy way to accomplish this?</p>
  
  <p>Thank you so much in advance for any assistance.</p>