Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org

Feedback: irt.org FAQ Knowledge Base Q272

Feedback on: irt.org FAQ Knowledge Base Q272

Sent by Keith Redfield on August 17, 1999 at 08:17:04: - feedback #376

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?






Sent by Oomer Merchant on August 28, 2002 at 02:35:11: - feedback #4101

Worth:
Very worth reading

Comments:
Thank you


Sent by David Gueguen on Saturday March 15, 2008 at 00:03:13 - feedback #5229

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;
}
}






©2018 Martin Webb