FF's built in Element class

FF has a built-in Element "class". Which means that you can extend it like this:
Element.prototype.mymethod = function(){
  //blah
}
and have the method be available from any dom element, no prototype.js needed.
document.getElementById('myDiv').mymethod();
This is what explains this previous post.

blog comments powered by Disqus