Ver Mensaje Individual
  #1 (permalink)  
Antiguo 28/03/2007, 10:58
Ocrum2004
 
Fecha de Ingreso: agosto-2004
Mensajes: 513
Antigüedad: 19 años, 8 meses
Puntos: 5
Problemas con IFRAME

No consigo quitar el borde de un IFRAMe cuando lo creo de manera dinámica, en firefox si funciona. El problema lo tengo con Internet Explorer.

La idea es que al pinchar en un enlace aparezca un IFRAME cargando información.

EL código que tengo es:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Creating an IFRAME</title>
<script language="JavaScript" type="text/javascript">
function makeFrame() {
ifrm = document.createElement("IFRAME");
ifrm.setAttribute("src", "http://www.forosdelweb.com");
ifrm.setAttribute("scrolling","no");
ifrm.setAttribute("border","0");
ifrm.setAttribute("marginwidth","0");
ifrm.setAttribute("marginheight","0");
ifrm.setAttribute("hspace","0");
ifrm.setAttribute("vspace","0");
ifrm.setAttribute("frameborder","0");
ifrm.style.width = 202+"px";
ifrm.style.height = 152+"px";
document.body.appendChild(ifrm);
}
</script>
</head>
<body bgcolor="#FFFFFF">
<p><a href="#" onMouseDown="makeFrame()"> Lets make an iframe </a></p>
</body>
</html>