I have a web page with an IFrame named "objFrame".
In a Javascript file, the following statement is executed:
var useWindow = (typeof(window.objFrame) != "undefined" && typeof(window.objFrame.contentWindow) != "undefined");
When running the code (normally or stepping through it with the debugger), the expression
(typeof(window.objFrame) != "undefined" && typeof(window.objFrame.contentWindow) != "undefined")
is true when I paste it into the Watch window in Firebug, but useWindow gets the value false.
I am using Firefox 3.0.6 with Firebug 1.3.2.
What am I missing here? Please tell me that this is a simple syntactical error on my part(?!?)