Ver Mensaje Individual
  #6 (permalink)  
Antiguo 10/05/2014, 09:53
Avatar de Italico76
Italico76
 
Fecha de Ingreso: abril-2007
Mensajes: 3.303
Antigüedad: 17 años, 1 mes
Puntos: 292
Respuesta: Intento crear un iframe pero no funciona

Google no se deja meter dentro de un iframe ;)

Código Javascript:
Ver original
  1. <html>
  2. <script language="JavaScript">
  3. function activarweb(  ) {
  4.     var testFrame = document.createElement("IFRAME");
  5.     testFrame.id = "testFrame";
  6.     testFrame.src = "http://www.forosdelweb.com";
  7.     testFrame.style.height = "100%";
  8.     testFrame.style.width = "100%";
  9.     document.body.appendChild(testFrame);
  10. }
  11. </script>
  12. </head>
  13. <body>
  14. <p><input type="button" name="Submit" value="cargar"  onclick="activarweb()"/></p>
  15. </body>
  16. </html>

ForosDelWeb si
__________________
Salu2!

Última edición por Italico76; 10/05/2014 a las 09:54 Razón: PHP no tiene nada que ver.... :P