Se la pagina non cambia puoi usare l'attributo src... altrimenti, con firebug ho trovato l'attributo contentDocument che funziona in explorer, mentre con firefox funziona solo con il primo frame
Codice:
<html>
<head>
<script type="text/javascript">
function load()
{
var frames = document.getElementsByTagName("iframe");
for (var i = 0; i<frames.length; i++)
{
alert(frames[i].src);
if (frames[i].contentDocument)
if (frames[i].contentDocument.location)
alert(frames[i].contentDocument.location.href);
}
}
</script>
</head>
<body onload="load()">
<iframe src="http://www.google.it" width="400" height="200"></iframe>
<iframe src="http://www.corriere.it" width="400" height="200"></iframe>
<iframe src="http://www.codeblocks.org" width="400" height="200"></iframe>
</body>
</html>