How to get the references of all opened child windows after parent window reload
I am storing the reference of child window in variable as below.
var mychildWindow = window.open(url,name,params);
Whe开发者_运维知识库n the parent window refresh/reload how to get the child window instance??
Any work around or like Facebook did for pop out chat.
Thanks in advance
Facebook doesn't use (to my knowledge) window.open - they use panels - floating divs a layer above the main content - have a look at the YUI Panel for an example.
If you have control over both windows, the child window can send a beacon to the parent on an interval: "I'm your child, I'm your child, I'm your child".
http://abcoder.com/javascript/maintain-reference-to-popup-window-over-page-refresh-or-redirect-in-javascript-solved
Unfortunately, I'm opening potentially any url in the child window, so I don't have control over that.
精彩评论