marmistrz
marmistrz

Reputation: 6392

Substitution of window variable

In the JavaScript code there is code

newlyCreatedWindow = window.open(url, stageName, strWindowFeatures);

As even with popup blocking disabled this fails and returns NULL.

Is it possible to set newlyCreatedWindow to the current window?

Upvotes: 0

Views: 33

Answers (1)

androidavid
androidavid

Reputation: 1259

Why not? I guess you want to do a "fallback"

if (!newlyCreatedWindow)
     newlyCreatedWindow = window;

(if this is not what you're thinking about, you should specify your problem)

Upvotes: 1

Related Questions