<form name="miFormu" action = "javascript:alert('Enviando')"> <input type="text" /> </form> <div onclick ="document.miFormu.submit()">Enviar</div>