load
This event will be fired when a new document is being loaded.
// Create an event handler that shows the URI of the loaded document.
function myLoadHandler(evt)
{
alert("Document loaded: " + evt.document.getDocumentURI());
}
// Attach the event handler.
Editor.addEventListener("load", myLoadHandler);
- Documentation
- › API
- › Global objects API
- › load
load event
Properties
- canvas XopusCanvas
- The canvas in which the document is loaded.
- document XopusDocument
- The XML document that was loaded. This can be used to attach other eventListeners.
- target Editor
- The object that originally fired the event.
- type String
- The type of the event.
History
| version | event |
|---|---|
| Xopus 3.x | Introduction. |
| Xopus 3.1.6 | Change. The load event fires when a XopusCanvas is started, instead of when it has finished loading. |