Ver Mensaje Individual
  #1 (permalink)  
Antiguo 24/03/2006, 10:42
Avatar de mauled
mauled
 
Fecha de Ingreso: marzo-2005
Ubicación: Cd. de México.
Mensajes: 3.001
Antigüedad: 19 años, 2 meses
Puntos: 33
De acuerdo Crear div dinamico!

Código HTML:
<html> 
<head> 
<script type="text/javascript"> 
num=0; 
function ver(fil) { 
  obj=fil.form; 
  tab = document.createElement('div');
  tab.id = 'calendario';
  tab.style.padding = "1px";
  obj.appendChild(tab); 
} 
</script> 
</head> 
<body> 
<form> 
<input type="button" onclick="ver(this)" /> 
</form> 
</body> 
</html> 
El problema que estoy teniendo es que no se esta creando mi elemento div. ¿Qué tengo mal?

Espero me puedan ayudar