vForums Support > Programming & Coding :: Programming Discussion :: > getElementsByClassName
getElementsByClassName - Posted By Ross (admin) on 29th Apr 09 at 10:28pm
The functions.js which is used on every forum now includes my implementation on getElementsByClassName. This function has native support in browsers such as Firefox or Safari so that is used whenever avaliable. But the code I had added is used for browsers such as Internet Explorer. It's called in the same way as the other parts of the get() function: get('The ClassName', CLASS[, Object]); It can cope with elements which have multiple class names. Unfortunately it returns an array of the matching elements rather than a node list but I think that's the best that can be expected for Internet Explorer