getElementsByClassName() rewritten
Andy has rewritten getElementsByClassName, resulting in much cleaner code and a method which can be called on any DOM element, not just the document object.
Andy has rewritten getElementsByClassName, resulting in much cleaner code and a method which can be called on any DOM element, not just the document object.
Previously hosted at http://simon.incutio.com/archive/2003/03/31/getElementsByClassNameRewritte
Andrew - 1st April 2003 21:52 - #
ms-help://MS.MSDNQTR.2003FEB.1033/script56/html/js 56jserrfunctiondoesnothavevalidprototypeobject.htm
Which states that
So a workaround in IE... nothing better than to define the
getElementsByClassName()as a global function and throw in the actual Element-object as a parameter...Christian - 10th August 2004 11:40 - #