miércoles, mayo 05, 2004

Funcion Javascript interesante

Una manera elegante de reemplazar el document.all usado en IExplorer por una funcion que siempre funcione:

if(document.all && !document.getElementById)
{
document.getElementById = function(id) {return document.all[id];}
}

No hay comentarios: