Ver Mensaje Individual
  #2 (permalink)  
Antiguo 03/12/2011, 11:06
Avatar de emprear
emprear
Colaborador
 
Fecha de Ingreso: junio-2007
Ubicación: me mudé
Mensajes: 8.388
Antigüedad: 16 años, 10 meses
Puntos: 1567
Respuesta: dudas con iframe

El contenido de botonera.html

Código HTML:
Ver original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <title>titulo</title>
  4. <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  5. </head>
  6. <a href="http://forosdelweb.com" target="destino">ForosdelWeb en iframe 2</a> | <a href="http://google.com" target="_top">google en la pagina principal</a>
  7. </body>
  8. </html>

El contenido de tu index que contiene los 2 frames

Código HTML:
Ver original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <title>titulo</title>
  5. <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  6. </head>
  7. <iframe width="300" height="200" src="botonera.html" name="botonera"></iframe>
  8. <hr />
  9. <iframe width="300" height="200" src="vacio.html" name="destino"></iframe>
  10. </body>
  11. </html>

si te fijas lo que determina en donde se va a cargar es el atributo target, cuyo valor es el atributo name del 2º frame. Si usas _top carga en toda la página, y si usas _self en le propio frame 1 que contiene botonera.html

Pero mucho no me cierra el que pongas la botonera en un iframe, ¿cual es el objeto?

saludos
__________________
La voz de las antenas va, sustituyendo a Dios.
Cuando finalice la mutación, nueva edad media habrá
S.R.