WebFX WebBoard
Message Thread:
View All Messages
Back to WebFX
 Extending DOM methods, manuel razzari, June 22, 2004
     Re:Extending DOM methods, Steven, June 30, 2004
         Re:Extending DOM methods, Erik Arvidsson, July 19, 2004

Subject: Re:Extending DOM methods From: Steven Date: June 30, 2004
Add it as a prototype to the "HTMLElement" interface (Gecko-only, though):

HTMLElement.prototype.getElementsByClass = function(strNeedle){ ... }

Hello, I've got a getElementsBy... function, I'd like to have it available to any DOM object like the other DOM methods...
Currently I have
document.getElementsByClass = function(strNeedle){ ... }
I'd like to be able to use it not only with document but with any other DOM object, like myDiv.getElementsBy...
I haven't been able to google how to do it... thanks for your help!
- manuel



Reply
Name: 
Email: 
Subject: 

Enter your reply to this message below. HTML tags are not supported but words that start with http://, ftp:// or mailto: are converted to links.


View All Messages
Back to WebFX