Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

Feedback on: JavaScript FAQ Knowledge Base

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


Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 21st December 2007. Maintained by: Martin Webb
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.