Feedback on: irt.org FAQ Knowledge Base Q272
Worth:
Worth reading
Length:
Just right
Technical:
Not technical enough
Comments:
Final paragraph is still not clear. Call it with a parent.openWindow() or what?
Worth:
Very worth reading
Comments:
Thank you
Worth:
Worth reading
Length:
Technical:
Comments:
The problem with this method is: if the location of the parent window has changed or been refreshed, then it would have lost track of previous variables. If this happens, then the page would try reloading the child window. A better way would be to use window.open() without specifying a URL. That way, if there is already a window open with the same name, it won't overwrite what's already there. Consider this change to the second example:
function openBroswer(f,p,t) {
//f = path to file
//p = parameters
//t = title - required
daughterWindow = window.open('',t,p);
if (daughterWindow.location == 'about:blank') {
daughterWindow.location = f;
}
}