Send a form from an image or link with javascript

Suppose we want to send a form, but we want to do rather than from the typical submit button (type = "submit") from a link or an image.

From the link:

<form action="dondequierasir" method="post"> 
<input name="texto_1" type="text" />
//indicamos la acción de enviar el formulario
<a href="javascript:document.nombre_formulario.submit();">Enviar formulario</a>
</form>

From an image:


<form action="dondequierasir" method="post"> 
<input name="texto_1" type="text" />
//añadimos al evento onClick la acción de enviar el formulario
<img onclick="javascript:document.nombre_formulario.submit();" src="ruta_imagen" alt="" />
</form>

Share



Nickelback - "How You Remind Me"

Nickelback - "How You Remind Me"

Share



Vergara Territory: Crucifixes and Historical Memory

Crucifixes and Historical Memory

2008-11-25.jpg

I recommend visiting the blog "Vergara Territory" , his cartoons "nailed it."

http://blogs.publico.es/vergara/

Share



Damien Rice - Volcano

Damien Rice - Volcano

Share



Amateur Group Management

The theme of the week is an initiative that is taking on stratos . Its purpose is simply to share the knowledge that its users have acquired over the years.

So basically is to propose topics in the world of video game development and launch every week a debate that contribute and contrast the views of all.
Details: Learn More

Today has started the fourth debate: "Amateur Group Management" .
Responsible for opening the debate was Sipox .
To join you just have to share your opinions here .

If you missed any you have history here .

Share



The wine miracle

Cyanide and Happiness, a daily webcomic
Cyanide & Happiness @ Explosm.net

Share



We release new design

I suppose it was inevitable to change the direction and the look of the blog.
So it is done.

Share



Test Plan

The theme of the week is an initiative that is taking on stratos . Its purpose is simply to share the knowledge that its users have acquired over the years.

So basically is to propose topics in the world of video game development and launch every week a debate that contribute and contrast the views of all.
Details: Learn More

Today has started the third debate: "Test Plan" .
Responsible for opening the debate was ethernet .
To join you just have to share your opinions here .

If you missed any you have history here .

Share



Matrix driven Windows

Matrix driven Windows

Share



Casuals Vs Hardcores

There has been a change of dates between two themes, "New means of digital distribution for game developers" going to change the start date to "Casuals Vs Hardcores".

So with a little late today has started the second debate: "Casuals Vs Hardcores" .
Responsible for opening the debate was Mars Attacks .
To join you just have to share your opinions here .

Share