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<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<script type="text/javascript"> //<![CDATA[
var cuenta = 0;
function alertas(){
cuenta ++;
alert('Cuenta: ' + cuenta);
}
//]]>
<p><a href="http://miipodtouch.com" target="destino">volver a cargar
</a> <br /></p> <iframe src="http://miipodtouch.com" onload="alertas();" name="destino" id="destino"></iframe>
Saludos y Feliz año nuevo