![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
25/05/2012, 17:12
|
![Avatar de marlanga](http://static.forosdelweb.com/customavatars/avatar385383_3.gif) | | | Fecha de Ingreso: enero-2011 Ubicación: Murcia
Mensajes: 1.024
Antigüedad: 14 años Puntos: 206 | |
Respuesta: agregar atributo a <body> var a = document.createAttribute("onunload");
a.nodeValue = "mifuncion()";
document.body.setAttributeNode(a); |