Comunidad de diseño web y desarrollo en internet online

html boton

Citar            
MensajeEscrito el 26 Nov 2008 05:46 pm
hola tengo un tema no entiendo mucho html yo soy mas de php y me gustaria que me ayudaran en el siguiente codigo. <input type="submit" value="Aceptar"> ese es el codigo del boton y lo que quiero hacer es que el boton abra la pagina en otra pestaña o ventana el problema que tiene que ser por narices html.
Alguien me puede ayudar?

Por rubensfh

38 de clabLevel



 

safari
Citar            
MensajeEscrito el 05 Dic 2008 02:32 pm
Cambia type="submit" a type="button, y agrega un atributo onclick al boton asi:

Código HTML :

onclick="window.location.href='tupagina.html'"

Por drarock

Claber

705 de clabLevel

3 tutoriales

Genero:Femenino  

Lima, Peru

msie7
Citar            
MensajeEscrito el 05 Dic 2008 05:17 pm
Mejor ponle al form un evento onSubmit con un target para pasarle los resultados:

Código :

<form onsubmit="window.open('http://www.tusitio.com/pagina.html', 'popup', 'scrollbars=yes');return true;" target="popup" method="post" action="http://www.tusitio.com/pagina.html">


así se disparará cuando sea enviado.

Por Skatos

393 de clabLevel

4 tutoriales

 

firefox

 

Cristalab BabyBlue v4 + V4 © 2011 Cristalab
Powered by ClabEngines v4, HTML5, love and ponies.