John's solution should work fine (assuming you correct the slight syntax error) though there isn't really a need to continually request focus. Listening for an onblur event and then waiting a small amount of time before requesting focus should do the job. See: http://www.webdevfaqs.com/javascript.php#altpopupfocus.
Location: Los Angeles, CA Original Location: Philippines
Posts: 10,241
Thanks: 0
Thanked 112 Times in 111 Posts
That would be annoying because you can't focus to other opened applications. You only bring the focus back to the popup if the focus is currently in the parent window not in other applications. I think that's what the author did in the link that I mentioned in my previous post.
Good point Glenn. The most practical solution would likely be to check if it's IE, if so, use showModalDialog; if Mozilla, use openDialog. Though, it would be nice if there was some kind of universal method or parameter that could be used…