If you open a window like:
window.open (\"url\",\"winName\",\"location=0,width=300,height=214\");
If winName is already open i
winName
window.focus() applied to the window in question should do the trick.
window.focus()