topical media & game development
#javascript-code-02-target.js / js
// Bind a Double-Click listener to the document
document.ondblclick = function(e) {
// Neutralize the Event object
e = e || window.event;
// Find thet correct target node
var t = e.target || e.srcElement;
// remove the node from the DOM
t.parentNode.removeChild( t );
};
(C) Æliens
20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.