[Javascript] Lien redirection sur clic bouton
Résolu/Fermé
Sandriine
Sandriine
- Messages postés
- 1251
- Date d'inscription
- samedi 9 décembre 2006
- Statut
- Membre
- Dernière intervention
- 18 août 2010
Sandriine
- Messages postés
- 1251
- Date d'inscription
- samedi 9 décembre 2006
- Statut
- Membre
- Dernière intervention
- 18 août 2010
A voir également:
- [Javascript] Lien redirection sur clic bouton
- [Javascript] Lien redirection sur clic bouton ✓ - Forum - Javascript
- Lien redirection sur clic bouton ✓ - Forum - Webmaster
- Javascript changer couleur au clic - Forum - Javascript
- Bruitage clic bouton - Forum - Internet / Réseaux sociaux
- Javascript - Lien aléatoire / Choisir un lien au hasard - Conseils pratiques - Javascript
3 réponses
salut, un truc du style
<script language=javascript>
function redirige
{
location.href = document.forms[0].btn1.text;
}
</script>
<html>
<input name="btn1" type=button onClick="redirige()">
</html>
<script language=javascript>
function redirige
{
location.href = document.forms[0].btn1.text;
}
</script>
<html>
<input name="btn1" type=button onClick="redirige()">
</html>
Sandriine
7 avril 2008 à 13:07
- Messages postés
- 1251
- Date d'inscription
- samedi 9 décembre 2006
- Statut
- Membre
- Dernière intervention
- 18 août 2010
7 avril 2008 à 13:07
merci beaucoup de ton aide, elle m'a permis de trouver la solution :
j'ai créé une fonction javascript avec
Merci encore!
j'ai créé une fonction javascript avec
document.location="page.php?param="+FrmRecherche.xnom.value
Merci encore!
7 avril 2008 à 10:44
il me semble également qu'il faut des apostrophes pour les url.