Ver Mensaje Individual
  #1 (permalink)  
Antiguo 15/04/2011, 20:35
Avatar de salbatore
salbatore
 
Fecha de Ingreso: abril-2007
Ubicación: Springfield
Mensajes: 1.567
Antigüedad: 17 años, 1 mes
Puntos: 19
Borrar todos los eventos

Hola a todos,

En mi js pongo los enventos con la funcion:

Código Javascript:
Ver original
  1. function _event_ad(o,t,f)
  2.     {
  3.         if(o.addEventListener){o.addEventListener(t,f,false);}
  4.         else if(o.attachEvent){var fn=function(){f.call(o,window.event);}
  5.         o.attachEvent('on'+t,fn);}
  6.         else {alert('Dont ad event'); }
  7.     }

¿Como puedo hacer para borrar todos los eventos a un elemento determinado?