![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
22/12/2008, 14:07
|
| | Fecha de Ingreso: diciembre-2008
Mensajes: 14
Antigüedad: 16 años, 2 meses Puntos: 0 | |
Respuesta: Extraer código fuente de un frame en JS Respecto a lo anterior, tengo algo así y no visualizo el fuente de http://prueba.com:
<html>
<head>
<script language="JavaScript">
<!--
function loadData(var1,var2)
{
top.frames['hidden'].location="http://prueba.com";
var source = top.frames['hidden'].document.documentElement.innerHTML;
document.write(source);
}
-->
</script>
</head>
<body>
<form ...>
....
<input type="submit" value="Enviar" onClick="loadData(var1,var2)">
</form>
</body>
</html>
En otra página html defino los frames y referencio en uno de ellos al anterior código. |