[Project_owners] Fwd: Q: explicitOriginalTarget.defaultView.document in FF 1.5

Tony Gentilcore gentilac at slu.edu
Thu Dec 1 22:15:46 EST 2005

Hi Godmar,

Maybe I do not understand your question properly, but I have always
retrieved the document in FF 1.0 and FF 1.5 like this:

window.addEventListener("load", function() {
  var appcontent = window.document.getElementById("appcontent");
  if (appcontent) {
    appcontent.addEventListener("DOMContentLoaded", yourFunction, false);
}, false);

function yourFunction(aEvent) {
	// doc is document that triggered "onload" event
	var doc = aEvent.originalTarget;

Hope this helps...

-----Original Message-----
From: project_owners-bounces at mozdev.org
[mailto:project_owners-bounces at mozdev.org] On Behalf Of Godmar Back
Sent: Wednesday, November 30, 2005 10:08 PM
To: project_owners at mozdev.org
Subject: [Project_owners] Fwd: Q:
explicitOriginalTarget.defaultView.document in FF 1.5


In FF 1.0, I was able to directly access javascript properties of the
document shown in the appcontent window using
event.explicitOriginalTarget.defaultView.document from inside a
DOMContentLoaded callback.

In FF 1.5, this seems to be the case no longer; or the
DOMContentLoaded callback is invoked differently. For instance, when
trying to access document.gs via
event.explicitOriginalTarget.defaultView.document.gs on the Google
result page I get a "no such property" exception, whereas the same
code works in FF 1.0.

Did anyone on this list encounter anything similar while transitioning to


 - Godmar
Project_owners mailing list
Project_owners at mozdev.org

More information about the Project_owners mailing list