Posted by Michael Winter on 06/29/05 01:50
On 28/06/2005 23:24, Gérard Talbot wrote:
[snip]
> It's better to set the global variable to null and not to undefined.
I fail to see why. The variable will type-convert to boolean false in
just the same way, and the code that you cite doesn't attempt to make
any distinction between two values.
The rest I agree with, though if we're talking best practices, the code
suggested by Mozilla should also test to make sure that the open and
focus methods exist before calling them in case a user is using a proxy
or third-party pop-up blocker that effectively deletes or fakes the
former, thus making the latter non-existent.
[snip]
Mike
--
Michael Winter
Replace ".invalid" with ".uk" to reply by e-mail.
[Back to original message]
|