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

Feedback on: JavaScript FAQ Knowledge Base, March 10, 1999 at 15:40:20:

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

Feedback on:
JavaScript FAQ Knowledge Base

Sent by
Mark Boisvert on March 10, 1999 at 15:40:20:

Worth:
Very worth reading

Comments:
I have been using the JavaScript FAQ Knowledge Base quite consistently over the past few days. It has been EXTREMEMLY helful. Since this site has been so helpful to me, I just wanted to point out a possible solution to Q272. I noticed that you solved the problem by depending on frames. However, this solution only works provided the hidden frame remains when URLs change. Another possible solution that will work all the time (it took me much time to figure this out) is as follows:

function MyOpen(url, name, features)
{
var aWindow = open("", name, features);

if( aWindow.location.href == "about:blank" )
{
aWindow.location.replace( url );
}
}

When you pass the open function a "" for the url, it does not change the url of the existing window (if indeed it does exist... otherwise it creates one with a href of "about:blank"). This works just as good as checking to see if the window exists.

Thanks.
-Mark



Other feedback on 'JavaScript FAQ Knowledge Base' - show all

©2018 Martin Webb