Elemento input (type=button)


<script type="text/javascript"> function ConfirmDemo() { //Ingresamos el texto a mostrar var mensaje = confirm("EJEMPLO: Comun铆quese con su representante o inicie sesi贸n en el sitio web para obtener m谩s informaci贸n sobre caracter铆sticas y beneficios."); //Detectamos si el usuario acepto el mensaje if (mensaje) { alert("SUBE TUS IMAGENES A: https://get.google.com/albumarchive/110710920843164807124/albums/photos-from-blogger"); } //Detectamos si el usuario deneg贸 el mensaje else { alert("Suerte con tu auto en el tr谩fico!"); } } </script> <br /> <form> <input onclick="ConfirmDemo()" type="button" value="PROBAR BOT贸N" /> </form> 

No hay comentarios.:

Publicar un comentario