Ver Mensaje Individual
  #2 (permalink)  
Antiguo 31/12/2012, 17:16
Avatar de emprear
emprear
Colaborador
 
Fecha de Ingreso: junio-2007
Ubicación: me mudé
Mensajes: 8.388
Antigüedad: 16 años, 10 meses
Puntos: 1567
Respuesta: ¿Contar el numero de veces que un Alert aparece (JavaScript)?

lo que estás haciendo no es muy claro, tampoco sé si tenés acceso al código de lo que se carga en el iframe, en todo caso algo asi
Código HTML:
Ver original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2.    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4.  
  5. <script type="text/javascript">
  6. //<![CDATA[
  7. var cuenta = 0;
  8. function alertas(){
  9. cuenta ++;
  10. alert('Cuenta: ' + cuenta);
  11. }
  12. //]]>
  13. </head>
  14. <p><a href="http://miipodtouch.com" target="destino">volver a cargar</a> <br /></p>
  15. <iframe src="http://miipodtouch.com" onload="alertas();" name="destino" id="destino"></iframe>
  16. </body>
  17. </html>

Saludos y Feliz año nuevo
__________________
La voz de las antenas va, sustituyendo a Dios.
Cuando finalice la mutación, nueva edad media habrá
S.R.