Ver Mensaje Individual
  #2 (permalink)  
Antiguo 14/05/2008, 08:11
Avatar de Saruman
Saruman
 
Fecha de Ingreso: mayo-2003
Ubicación: Panama city, Panama, Panama
Mensajes: 1.154
Antigüedad: 21 años
Puntos: 5
Re: Como crear código html mediante una función

Prueba esto:

Código PHP:
<script language="javascript">
    function 
crearBoton() {
        var 
document.createElement('input');
        
b.type 'button';
        
b.value 'Botón';
        
document.body.appendChild(b);
    }
</script>

<input type="button" onClick="crearBoton()" value="Crear Botones"> 
Saludos
__________________
Saruman

One Ring to rule them all, One Ring to find them, One Ring to bring them all and in the darkness bind them.