sentence: dom ( document object model ) events allow event-driven programming languages like javascript , jscript , ecmascript , vbscript and java to register various event handler / listener on the element nodes inside a dom tree , e.g. html , xhtml , xul and svg documents .