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

Feedback on: irt.org FAQ Knowledge Base Q272, Saturday March 15, 2008 at 00:03:13

You are here: irt.org | About | Feedback | 5229 [ previous next ]

Feedback on:
irt.org FAQ Knowledge Base Q272

Sent by
David Gueguen on Saturday March 15, 2008 at 00:03:13

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






Other feedback on 'irt.org FAQ Knowledge Base Q272' - show all

©2018 Martin Webb