Ver Mensaje Individual
  #1 (permalink)  
Antiguo 13/08/2004, 13:57
Avatar de bichomen
bichomen
 
Fecha de Ingreso: junio-2003
Ubicación: Barcelona y alrededores, España
Mensajes: 877
Antigüedad: 21 años, 8 meses
Puntos: 2
Emular target

Este post ya lo puse en foro de xHTML, pero no me supieron ayudar, el hilo de post, es este:


http://www.forosdelweb.com/showthread.php?t=222575


La idea es cargar un link en un object a modo de iframe:


Código HTML:
<script type="text/javascript">
 
 function cargar()
 
 {
 document.getElementById('elIdé').src ='pagina.htm';
 }
 
 </script>

ó 

 function cargar()
 
 {
 document.getElementById('elIdé').location.href ='pagina.htm';
 }
 
 </script>

 <a href="pagina.htm" onclick="cargar();">página</a> 
codigo del Object

Código HTML:
<object data="pagina.htm" id="elIdé" height="100%" width="100%"><a href="pagina.htm">página</a></object> 

Bueno, haber si alguien me puede ayudar

bichomen
__________________
"Se sabe con exactitud, con cuanta imprecisión, se sabe algo"
Linux Registered User #320332