As I noted above, if you wait for the onload event to fire in the target window, the URL there will reflect the final source of the HTML. You will need some JavaScript in this onload event handler to pass that info back to your "main" window.
Oh, BTW, event handlers are noticeably different...