Programmer's Guide > Interfaces > ADocumentEvent interface > initADocumentEvent method
  
initADocumentEvent method
Initializes the value of an ADocumentEvent created through the DocumentEvent interface. You should only call this method before the ADocumentEvent has been dispatched using the dispatchEvent method, though it can be called multiple times during that phase if necessary. If the initADocumentEvent is called multiple times, the final call takes precedence.
initADocumentEvent(typeArg, canBubbleArg, cancelableArg, relatedWindowArg, targetURIArg, targetEncodingArg, detailArg [, relatedDocumentArg] )
Parameters
StringtypeArg
Specifies the event type.
booleancanBubbleArg
Indicates whether or not the event can bubble.
booleancancelableArg
Indicates whether or not the event's default action can be prevented.
WindowrelatedWindowArg
Specifies the Window related to the Event.
StringtargetURIArg
Specifies the target URI. This value may be null.
StringtargetEncodingArg
Specifies the target encoding. This value may be null.
longdetailArg
Specifies the Event detail.
DocumentrelatedDocumentArg
[optional] Specifies the Document related to the Event.
Returns
void