Gecko-Specific DOM Events

  • Revision slug: Gecko-Specific_DOM_Events
  • Revision title: Gecko-Specific DOM Events
  • Revision id: 54402
  • Created:
  • Creator: Niczar
  • Is current revision? No
  • Comment /* DOMContentLoaded */

Revision Content

DOMContentLoaded

Fired on a Window object when a document's DOM content is finished loaded, but unlike "load", does not wait till all images are loaded. Used for example by GreaseMonkey to sneak in to alter pages before they are displayed.

This event, as many others on this page, is dispatched to "trusted" targets only; for example, it is not dispatched to the content of the main browser object in Firefox, even if it comes from a chrome:/ URI.

DOMFrameContentLoaded

Same as above, but also fired for enclosed frames.

DOMWindowClose

Fired when the window is about to be closed by window.close(). See

Others

There appears to be many other sparsely documented events. See  :

  • DOMLinkAdded
  • DOMLinkRemoved
  • DOMWillOpenModalDialog
  • DOMModalDialogClosed
  • DOMWindowClose
  • fullscreen
  • PopupWindow
  • DOMContentLoaded
  • DOMTitleChanged
  • PluginNotFound
  • ValueChange
  • DOMMenuItemActive
  • DOMFrameContentLoaded
  • windowZLevel

Example

window.addEventListener("DOMFrameContentLoaded", myeventhandler, true);

Revision Source

<h3 name="DOMContentLoaded"> DOMContentLoaded </h3>
<p>Fired on a Window object when a document's DOM content is finished loaded, but unlike "load", does not wait till all images are loaded. Used for example by GreaseMonkey to sneak in to alter pages before they are displayed.
</p><p>This event, as many others on this page, is dispatched to "trusted" targets only; for example, it is not dispatched to the content of the main browser object in Firefox, even if it comes from a chrome:/ URI.
</p>
<h3 name="DOMFrameContentLoaded"> DOMFrameContentLoaded </h3>
<p>Same as above, but also fired for enclosed frames.
</p>
<h3 name="DOMWindowClose"> DOMWindowClose </h3>
<p>Fired when the window is about to be closed by window.close(). See <a class="external" href="https://bugzilla.mozilla.org/show_bug.cgi?id=103452">
</a></p><a class="external" href="https://bugzilla.mozilla.org/show_bug.cgi?id=103452">
<h3 name="Others"> Others </h3>
</a><p><a class="external" href="https://bugzilla.mozilla.org/show_bug.cgi?id=103452">There appears to be many other sparsely documented events. See </a><a class="external" href="https://bugzilla.mozilla.org/show_bug.cgi?id=286013"> :
</a></p><a class="external" href="https://bugzilla.mozilla.org/show_bug.cgi?id=286013">
<ul><li> DOMLinkAdded
</li><li> DOMLinkRemoved
</li><li> DOMWillOpenModalDialog
</li><li> DOMModalDialogClosed
</li><li> DOMWindowClose
</li><li> fullscreen
</li><li> PopupWindow
</li><li> DOMContentLoaded
</li><li> DOMTitleChanged
</li><li> PluginNotFound
</li><li> ValueChange
</li><li> DOMMenuItemActive
</li><li> DOMFrameContentLoaded
</li><li> windowZLevel
</li></ul>
<h2 name="Example"> Example </h2>
<p>	window.addEventListener("DOMFrameContentLoaded", myeventhandler, true);
</p></a>
Revert to this revision