Wagner Martins - SC 0 Denunciar post Postado Janeiro 25, 2013 Estou querendo colocar um botao como type image, nele tem um onclick. Quando eu mudo o botão para type image ele da um refresh no site e se eu deixar como type button ele funciona certinho, esse botão serve para abrir um calendário. Como eu faço para que o botão type image funcione igual qdo tem type button? <input type="button" value="Cal" onclick="displayCalendar(document.forms[0].hoteis_entrada,'dd.mm.yyyy',this)" /> Compartilhar este post Link para o post Compartilhar em outros sites
William Bruno 1501 Denunciar post Postado Janeiro 26, 2013 type image é um type submit com imagem. ou vc usa css para customizar o type button, ou faz um return false no onsubmit do teu formulário. Compartilhar este post Link para o post Compartilhar em outros sites
KhaosDoctor 242 Denunciar post Postado Janeiro 26, 2013 É mais fácil você fazer um input type button e usar o css para colocar uma background-image. Compartilhar este post Link para o post Compartilhar em outros sites