Ver Mensaje Individual
  #2 (permalink)  
Antiguo 20/05/2013, 14:26
alexg88
 
Fecha de Ingreso: abril-2011
Mensajes: 1.342
Antigüedad: 13 años
Puntos: 344
Respuesta: POO , emulando strong data typing (problema)

Buenas,

Si quieres obtener el id, tienes que acceder al atributo id:

Código Javascript:
Ver original
  1. function PersonaPrototype(){
  2.  
  3. this.NodoPadre = document.getElementById('ejemploID').id;
  4. }

Un saludo.