Question

Est-il possible de générer une forme en html qui permet au texte de l'entrée à envoyer à la barre d'adresse?

Était-ce utile?

La solution

Sure is, you just make sure the forms METHOD is set to GET:

<form id="myForm" method="GET">
//Form Stuff
</form>

Take a look here for more information

Autres conseils

Without any testing and going off the top of my head, this should do the trick (messily):

<form onsubmit="window.location = document.getElementById('addressfield').value; return false;">
   <input type="text" id="addressfield" />
</form>
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top