According to Dome events in the wiki,
Domodinded: When a node has been added to a fire Child of another node
DominoInterated Entry Document: When a node is inserted in a document then the fire
What is the real difference now? Both events should not be the same? If not then where else should be used?
The scenario where I am using the above DOM events is that, I have a set of pages and each page has a nav.jsp file reserved inside a single divisor. Now I want to highlight the new tab of the current page, so I give it a small background property after loading that DOM element (NVI DIV).
For my problem now
$ (document) .on ('Dominied', function (e) {if (e.target.id == "navigate ") {// ...........}});
worked, but what is the difference between the two events specified in my question, is only curious.
DOMNodeInsertedIntoDocument
event DOMNodeInsterted
is similar to event , But this happens when a node is inserted in the document.
For example, if a node is added to an element that is not a part of the document, then the DOMNodeInsterted
event has been removed, but DOMNodeInsertedIntoDocument
Event is not there. If the original element of the node is inserted in the document, the DOMNodeInsertedIntoDocument
event is removed, but DOMNodeInsterted
is not an event.
See JSFiddle: <