This works great in FF. But it only works with IE when the new child and parents location is on the same domain. To set focus with IE and the code above. The closing window and the opener window must use the same domain like www.mywebsite.com. I cant get this to work if the opener window is on www.mywebsite.com and the closing window is on www.anotherwebsite.com.
I cannot set document.domain to make this work either cause of restrictions.