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('*'); }); }