El contenido de botonera.html
Código HTML:
Ver original<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <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>
El contenido de tu index que contiene los 2 frames
Código HTML:
Ver original<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <iframe width="300" height="200" src="botonera.html" name="botonera"></iframe> <iframe width="300" height="200" src="vacio.html" name="destino"></iframe>
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