Hi all,

I have a script that loads a web site in a popup window. I need to keep the popup in focus until the user closes it.

The code I am working with is:

Code:
<script type="text/javascript">  
function PopupCenter(URL, title,w,h) {

var URL
var w
var h

w = 1150;
h = 800;

URL = 'dinamic content from sql table';


var left = (screen.width/2)-(w/2);
var top = (screen.height/2)-(h/2);
var targetWin = window.open (URL, title, 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=no, copyhistory=no, width='+w+', height='+h+', top='+top+', left='+left);

}  
</script>
Can anyone see how I can make this keep focus.

Many thanks in advance