On my page I open up a popup using:
sideWindow = window.open(address,'pop',"height=200,width=200,scrollbars=1");
$(sideWindow).load(loadComplete);
And it triggers the function loadComplete after loading correctly.
After opening the window the user can change it address after and I redirect the popup using:
sideWindow.location.href=newAddress;
However it is not triggering loadComplete after it finishes loading as desired. What is the best way to perform the redirect so it will trigger loadComplete after the new page finishes loading?
Notes:
I do not have access to the source of the pages I am loading.
loadComplete should not run until after the images are loaded so $(sideWindow.document).ready
would trigger to early.