addEventListener *
|
Void |
This method allows the registration of an event listener in the default group and, depending on the useCapture parameter, on the capture phase of the DOM event flow or its target and bubbling phases. |
Sytaxis:
object.addEventListener(sType, fListener, bUseCapture) Arguments:
Name |
Type |
O/R |
Description |
sType |
String |
Required |
Specifies the Event.type associated with the event for which the user is registering. |
fListener |
Function |
Required |
Function to be called when the event occurs. |
bUseCapture |
Boolean |
Required |
If true, user wishes to add the event listener for the capture phase only, if false - for target and bubbling phases. |
|
appendChild *
|
AMLNode
|
Appends a child element to the object. |
Sytaxis:
object.appendChild(oElement) Arguments:
Name |
Type |
O/R |
Description |
oElement |
AMLNode
|
Required |
The node to add. |
|
appendData *
|
Void |
Appends data to the end. |
Sytaxis:
object.appendData(sValue) Arguments:
Name |
Type |
O/R |
Description |
sValue |
String |
Required |
The DOMString to append. |
|
canDispatch *
|
Void |
Tests wether event of the specified namespace and type can be dispatched. |
Sytaxis:
object.canDispatch(sNameSpaceURI, sType) Arguments:
Name |
Type |
O/R |
Description |
sNameSpaceURI |
String |
Required |
NamespaceURI of the event to be tested. |
sType |
String |
Required |
Event type. |
|
cloneNode *
|
AMLNode
|
Creates a copy of node and returns it. |
Sytaxis:
object.cloneNode(bDeep) Arguments:
Name |
Type |
O/R |
Description |
bDeep |
Boolean |
Required |
Indicates wether the childnodes are also to be cloned. |
|
compareDocumentPosition *
|
Number |
Compares the reference node, i.e. the node on which this method is being called, with a node, i.e. the one passed as a parameter, with regard to their position in the document and according to the document order. |
Sytaxis:
object.compareDocumentPosition(oNode) Arguments:
Name |
Type |
O/R |
Description |
oNode |
AMLNode
|
Required |
The node to compare against the reference node. |
|
deleteData *
|
Void |
Removes portion of data from the specified position. |
Sytaxis:
object.deleteData(nOffset, nCount) Arguments:
Name |
Type |
O/R |
Description |
nOffset |
Number |
Required |
The offset from which to start removing. |
nCount |
Number |
Required |
The number of 16-bit units to delete. |
|
dispatchEvent *
|
Boolean |
This method allows the dispatch of events into the implementation's event model. Return value indicates whether any of the listeners which handled the event called preventDefault method on Event object. |
Sytaxis:
object.dispatchEvent(oEvent) Arguments:
Name |
Type |
O/R |
Description |
oEvent |
AMLEvent
|
Required |
The event to be dispatched. |
|
hasAttributes *
|
Boolean |
Retrieves true if the node has any attributes. |
Sytaxis:
object.hasAttributes()
|
hasChildNodes *
|
Boolean |
Returns a value that indicates whether the object has children. |
Sytaxis:
object.hasChildNodes()
|
insertBefore *
|
AMLNode
|
Inserts a chlid element after the specifyed element to the object. |
Sytaxis:
object.insertBefore(oElement, oBefore) Arguments:
Name |
Type |
O/R |
Description |
oElement |
AMLNode
|
Required |
The node to insert. |
oBefore |
AMLNode
|
Required |
The reference node, i.e., the node before which the new node must be inserted. |
|
insertData *
|
Void |
Inserts portion of data at the specified position. |
Sytaxis:
object.insertData(nOffset, sValue) Arguments:
Name |
Type |
O/R |
Description |
nOffset |
Number |
Required |
The character offset at which to insert. |
sValue |
String |
Required |
The DOMString to insert. |
|
isDefaultNamespace *
|
String |
This method checks if the specified namespaceURI is the default namespace or not. |
Sytaxis:
object.isDefaultNamespace(sNameSpaceURI) Arguments:
Name |
Type |
O/R |
Description |
sNameSpaceURI |
String |
Required |
The namespace URI to look for. |
|
lookupNamespaceURI *
|
String |
Look up the namespace URI associated to the given prefix, starting from this node. |
Sytaxis:
object.lookupNamespaceURI(sPrefix) Arguments:
Name |
Type |
O/R |
Description |
sPrefix |
String |
Required |
The prefix to look for. If this parameter is null, the method will return the default namespace URI if any. |
|
lookupPrefix *
|
String |
Look up the prefix associated to the given namespace URI, starting from this node. |
Sytaxis:
object.lookupPrefix(sNameSpaceURI) Arguments:
Name |
Type |
O/R |
Description |
sNameSpaceURI |
String |
Required |
The namespace URI to look for. |
|
normalize *
|
Void |
Puts all Text nodes in the full depth of the sub-tree underneath this Node, including attribute nodes, into a "normal" form |
Sytaxis:
object.normalize()
|
removeChild *
|
AMLNode
|
Removes a child node from the object. |
Sytaxis:
object.removeChild(oChild) Arguments:
Name |
Type |
O/R |
Description |
oChild |
AMLNode
|
Required |
The node being removed. |
|
removeEventListener *
|
Void |
This method allows the removal of event listeners from the default group. |
Sytaxis:
object.removeEventListener(sType, fListener, bUseCapture) Arguments:
Name |
Type |
O/R |
Description |
sType |
String |
Required |
Specifies the Event.type for which the user registered the event listener. |
fListener |
Function |
Required |
Listener to be removed. |
bUseCapture |
Boolean |
Required |
Specifies whether the EventListener being removed was registered for the capture phase or not. |
|
replaceChild *
|
AMLNode
|
Replaces the given child node by another node. |
Sytaxis:
object.replaceChild(oNew, oChild) Arguments:
Name |
Type |
O/R |
Description |
oNew |
AMLNode
|
Required |
The new node to put in the child list. |
oChild |
AMLNode
|
Required |
The node being replaced in the list. |
|
replaceData *
|
Void |
Replaces portion of data. |
Sytaxis:
object.replaceData(nOffset, nCount, sValue) Arguments:
Name |
Type |
O/R |
Description |
nOffset |
Number |
Required |
The offset from which to start replacing. |
nCount |
Number |
Required |
The number of 16-bit units to replace. |
sValue |
String |
Required |
The DOMString with which the range must be replaced. |
|
splitText
|
String |
Breaks the node into two nodes at the specified offset, keeping both in the tree as siblings. |
Sytaxis:
object.splitText(nOffset) Arguments:
Name |
Type |
O/R |
Description |
nOffset |
Number |
Required |
The 16-bit unit offset at which to split, starting from 0. |
|
substringData *
|
String |
Retrieves portion of data from the specified position. |
Sytaxis:
object.substringData(nOffset, nCount) Arguments:
Name |
Type |
O/R |
Description |
nOffset |
Number |
Required |
Start offset of substring to extract. |
nCount |
Number |
Required |
The number of 16-bit units to extract. |
|
toXML *
|
String |
Serializes Node to string. |
Sytaxis:
object.toXML()
|