
26/04/2008, 02:12
|
 | | | Fecha de Ingreso: diciembre-2007
Mensajes: 973
Antigüedad: 17 años, 3 meses Puntos: 24 | |
Re: Como saber si un objeto HTMl existe en Javascript Cuando un ID no existe la funcion getElementById(id) retorna null, por tanto la comprobación a usar podría ser:
if ( !document.getElementById('tableId_1') ) alert( "no existe" ); |