Hi justsomeguy, thanks at first for your answer. This whole DOM extension discussion seems quite complicated to me and ok, I won't extend the DOM.However, I wonder, if your suggestion to create a custom object is an "allowed" extension of the DOM. If I follow your suggestion to cerate a custom element, I would need to combine this new DOM element with the "new" operator. Is there a way to do this?
var customObject = new customObjectConstructor();var customElement = document.createElement('custom')//tell the DOM, that customElement is the customObject[\code] As the customObject is very huge, adding all methods and properties manually as you suggested is no option for me. What I want to do is something that should be very simple and I wonder, if I am searching in the wrong direction: I want a click event on an DOM element to trigger the execution of a custom javascript (run a method of a javacript object). And therefore I want the DOM to be able to access the jscript object by ID. If there is another way to do this - i would be glad to hear of it :-) Thanks in advance