On Sep 18, 7:01 pm, Stephan Kristyn <[email protected]> wrote: > In addition to the last answer given in this > threadhttp://groups.google.com/group/firebug/browse_thread/thread/17902c0dd... > > that you should check weather Firebug is installed with > > if (!window.console || !console.firebug) > > I would like to add checking for window.console in Chrome (7.05) will > return [object Console], so if you want to be absolutely sure weather > Firebug is installed check only for console.firebug. > > And if you check with > > if (!console.firebug) > > I would be extra careful since this is JavaScript. In this case it > works just fine, but keep in mind: > > If IS-NOT is zero, result is 1, but: > > (console.firebug != null) // false / null > (console.firebug != null) // false / null > (console.firebug !== null) // true > > In order to avoid such headaches, I would check like this > > if (console.firebug === undefined) // true if firebug is not > installed
If you want your comment to be correct, it should be // true if firebug Console is not active. By design there is no test a Web page can make to determine if a user has installed Firebug or is using Firebug. jjb -- You received this message because you are subscribed to the Google Groups "Firebug" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/firebug?hl=en.
