Script: IFrame

Estructura básica de un Iframe:

<iframe src="documentos/index.html"
name=”contenido” width=”0″ height=”0″ frameborder=”0″ scrolling=”no” title=”">
</iframe>

src Url de la página que se cargará dentro del IFrame
name Asigna un nombre al frame actual, el cual puede ser usado como target en links subsecuentes
width Ancho del IFrame
height Alto del IFrame
frameborder Ancho de borde del IFrame
scrolling Barra de desplazamiento: si/no

Ejemplo:

<html>
<head>
<title>Bienvenidos a Janckos.com</title>
</head>
<body>
<iframe src=”http://janckos.com/contenido_iframe.html”
width=”400″ height=”500″ scrolling=”auto” frameborder=”1″>
<p>Texto alternativo para navegadores que no soportan iframes.</p>
</iframe>
</body>
<html>

Especificación del elemento IFrame según W3C

Escribe un comentario