JavaScript - how to add support for document.all for other browsers? -


i have got bunch of old javascript code, document.all used. now, need find way replace document.all document.getelementbyid. there encapsulate document.all, call second function instead? or need edit files?

if (!document.all) {     document.constructor.prototype.__definegetter__('all', function() {          return document.getelementsbytagname('*');      });  } 

Popular posts from this blog

Php - Delimiter must not be alphanumeric or backslash -

c# - How to change the "Applies To" field under folder auditing options programatically (.NET) -

c++ - Ambiguity when using boost::assign::list_of to construct a std::vector -