Ver Mensaje Individual
  #2 (permalink)  
Antiguo 01/06/2014, 05:26
PHPeros
Colaborador
 
Fecha de Ingreso: septiembre-2013
Ubicación: España
Mensajes: 3.648
Antigüedad: 10 años, 8 meses
Puntos: 578
Respuesta: Código para cambiar "data" de un <object> con un link

Con setAttribute:

Código HTML:
Ver original
  1. <a href="#" onclick="document.getElementsByTagName('object')[0].setAttribute('data','Noticias.html'">Noticias</a>