![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
14/05/2008, 08:11
|
![Avatar de Saruman](http://static.forosdelweb.com/customavatars/avatar34404_3.gif) | | | Fecha de Ingreso: mayo-2003 Ubicación: Panama city, Panama, Panama
Mensajes: 1.154
Antigüedad: 21 años, 8 meses Puntos: 5 | |
Re: Como crear código html mediante una función Prueba esto: Código PHP: <script language="javascript"> function crearBoton() { var b = 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. |