Hi,
>From an event callback, I'm trying to get the window associated with
the fired event. I know how to get the document, but how to get the
window? Here is the code:
Browser overlay:
window.addEventListener("load", function() {myExt.init();}, false);
myext.js:
var myExt = {
...
init : function() {
document.getElementById("appcontent")
.addEventListener("load", this.pageLoad, true);
},
pageLoad : function(evt) {
// doc is document that triggered onload event
var doc = evt.originalTarget;
var wnd = ????
}
};
Thanks for any help,
Eric Jung
_______________________________________________
Project_owners mailing list
[email protected]
http://mozdev.org/mailman/listinfo/project_owners