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

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -