I have a parent page that opens a popup (chat) i wont that where someone send a msg to a user the popup to get focused.

I have a function on popup window that runs everytime a user get msg I put "self.focus()" on that function and this work fine in IE but not in Firefox.

Do someone know a way to fix this?