A voir également:
- Html bouton lien
- Bouton lien html - Meilleures réponses
- Bouton html lien - Meilleures réponses
- [HTML] bouton lien ✓ - Forum - HTML
- Mettre un bouton html de lien ✓ - Forum - HTML
- HTML bouton sous forme de lien - Forum - HTML
- HTML : Associer un lien avec un bouton... - Forum - HTML
- Comment mettre in lien dans un bouton html - Forum - HTML
8 réponses
@lex971
- Messages postés
- 77
- Date d'inscription
- mercredi 11 février 2009
- Statut
- Membre
- Dernière intervention
- 16 juillet 2012
Le plus simple encore est de mettre la Balise Bouton entre les Balises liens
Balise URL
Balise BOUTON
Bouton c'est le message qui s'affiche.
Ce qui donne:
Balise URL
<a href="TON-ADRESSE-ICI" target="_blank"> BALISE BOUTON ICI </a>
Balise BOUTON
<input type="button" value="Bouton">
Bouton c'est le message qui s'affiche.
Ce qui donne:
<a href="TON-ADRESSE-ICI" target="_blank"> <input type="button" value="Bouton"> </a>
Afficher les 6 commentaires
Signaler
@lex971
J'ai trouvé ça génial!!!Merci!
Signaler
Devine
Je vais ESSAYER
Signaler
merci
merci
Signaler
bounia
tu as sauvé ma journée !
Signaler
seddik
merci bien
Erdnax
- Messages postés
- 2273
- Date d'inscription
- mercredi 1 octobre 2003
- Statut
- Contributeur
- Dernière intervention
- 1 octobre 2007
Salut, remplace ta ligne par celle-ci :
echo '<form><input type="button" value="Accueil" OnClick="window.location.href=\'http://www.pagedaccueildemonsite.com/\'"></form>';@+
tokismos
slt
pour creer un bouton avec liens c'est vraiment res facile.
le code c'est:
j'espere que je vous ai aider
pour creer un bouton avec liens c'est vraiment res facile.
le code c'est:
<FORM ACTION="(l'url que vou voulez ex:salut.html)"> <INPUT TYPE="SUBMIT" VALUE="(le nom de bouton ex:salut)"></FORM>
j'espere que je vous ai aider
leoetevan
Bonjour,
J'ai le même problème à la différence près que je me trouve déjà dans un formulaire. J'ai déjà un bouton submit et je voudrais ajouter un autre bouton. Je ne peux pas intégrer une balise form à l'intérieur d'un autre form.
Je voudrais juste savoir si c'est possible autrement. Merci d'avance
J'ai le même problème à la différence près que je me trouve déjà dans un formulaire. J'ai déjà un bouton submit et je voudrais ajouter un autre bouton. Je ne peux pas intégrer une balise form à l'intérieur d'un autre form.
Je voudrais juste savoir si c'est possible autrement. Merci d'avance
Cilou
Petit complement d information (en anglais...) que je me permets de copier/coller (http://www.fuel-efficient-vehicles.org/pwsdb/pgm/Exper-notes.php)
J ai aussi eu un probleme avec ce bouton et le "onClick". Maintenant le probleme est resolu... je passe au suivant!
It is almost never mentioned in all the information available on JavaScript but, the scripts that only run in windows' I.E. - like, for instance,
onclick=window.location.href("index.html")
are not Java Script at all but Microsoft's own "thing", "Jscript". Always out to, "do their own thing", despite the need for all browsers to follow standards - and the reason that today web designers use tools that stay away from MS's propriatary abberations - or warn you when you are about to code something that will only work in one browser (IE). The true JavaScript is
onclick="window.location='index.php'" ; (which also works in IE)
or
onclick=window.location="index.php"
Note all the quotes, single and double and, the semicolon.
The quotes around the url is necessary.
The good news is that this one line of code can make an entire line of a complex table clickable to another url.
or ... in a new window
onclick=window.open("index.html")
J ai aussi eu un probleme avec ce bouton et le "onClick". Maintenant le probleme est resolu... je passe au suivant!
It is almost never mentioned in all the information available on JavaScript but, the scripts that only run in windows' I.E. - like, for instance,
onclick=window.location.href("index.html")
are not Java Script at all but Microsoft's own "thing", "Jscript". Always out to, "do their own thing", despite the need for all browsers to follow standards - and the reason that today web designers use tools that stay away from MS's propriatary abberations - or warn you when you are about to code something that will only work in one browser (IE). The true JavaScript is
onclick="window.location='index.php'" ; (which also works in IE)
or
onclick=window.location="index.php"
Note all the quotes, single and double and, the semicolon.
The quotes around the url is necessary.
The good news is that this one line of code can make an entire line of a complex table clickable to another url.
or ... in a new window
onclick=window.open("index.html")
Girl5766
Bonjour je suis dans FrontPage et j'ai fais un bouton qui ne marche qu'au début que je le fais et puis après c'est tout blanc vous pouvez m'aider:
<applet code="fphover.class" codebase="./" width="76" height="24" align="left">
<param name="color" value="#000080">
<param name="hovercolor" value="#0000FF">
<param name="text" value="Accueil">
<param name="effect" value="glow">
<param name="image" valuetype="ref" value="file:///C:/Documents%20and%20Settings/All%20Users/Documents/Mes%20images/Échantillons%20d'images/boutonA.gif">
<param name="hoverimage" valuetype="ref" value="file:///C:/Documents%20and%20Settings/All%20Users/Documents/Mes%20images/Échantillons%20d'images/boutonB.gif">
<param name="url" valuetype="ref" value="Accueil.htm">
<param name="font" value="Dialog">
<param name="fontstyle" value="bold">
<param name="fontsize" value="14">
</applet>
Merci de bien vouloir m'aider.
<applet code="fphover.class" codebase="./" width="76" height="24" align="left">
<param name="color" value="#000080">
<param name="hovercolor" value="#0000FF">
<param name="text" value="Accueil">
<param name="effect" value="glow">
<param name="image" valuetype="ref" value="file:///C:/Documents%20and%20Settings/All%20Users/Documents/Mes%20images/Échantillons%20d'images/boutonA.gif">
<param name="hoverimage" valuetype="ref" value="file:///C:/Documents%20and%20Settings/All%20Users/Documents/Mes%20images/Échantillons%20d'images/boutonB.gif">
<param name="url" valuetype="ref" value="Accueil.htm">
<param name="font" value="Dialog">
<param name="fontstyle" value="bold">
<param name="fontsize" value="14">
</applet>
Merci de bien vouloir m'aider.
DJNo06
Place tes fichiers boutonA.gif et boutonB.gif dans le dossier racine de ton site puis remplace les deux valeurs
value="file:///C:/Documents%20and%20Settings/All%20Users/Documents/Mes%20images/Échantillons%20d'images/boutonA.gif"
et
value="file:///C:/Documents%20and%20Settings/All%20Users/Documents/Mes%20images/Échantillons%20d'images/boutonB.gif"
respectivement par
value="boutonA.gif"
et
value="boutonB.gif"
value="file:///C:/Documents%20and%20Settings/All%20Users/Documents/Mes%20images/Échantillons%20d'images/boutonA.gif"
et
value="file:///C:/Documents%20and%20Settings/All%20Users/Documents/Mes%20images/Échantillons%20d'images/boutonB.gif"
respectivement par
value="boutonA.gif"
et
value="boutonB.gif"
bob
Bonjour
Avez vous la solution? J'aimerai faire un menu deroulant avec redirection vers une url mais je trouve pas ou mettre url :
<p align=center>Pour télécharger la carte, cliquez dessus !! <br>
<font color="red">Les maps as (V.I.P.)<br>
</font><select name="map" id="map">
<option value="as_alpine">as_alpine </option>
<option value="as_climb">as_climb </option>
</select><br>
J'ai voulu mettre ca :
<p align=center>Pour télécharger la carte, cliquez dessus !! <br>
<font color="red">Les maps as (V.I.P.)<br>
</font><select name="map" id="map">
<option value="http://www.monlien....">as_alpine </option>
<option value=""http://www.monlien....>as_climb </option>
</select><br>
Mais cela fonctionne pas.Dsl mais je debute de cesoir dans le html merci d'avance
Avez vous la solution? J'aimerai faire un menu deroulant avec redirection vers une url mais je trouve pas ou mettre url :
<p align=center>Pour télécharger la carte, cliquez dessus !! <br>
<font color="red">Les maps as (V.I.P.)<br>
</font><select name="map" id="map">
<option value="as_alpine">as_alpine </option>
<option value="as_climb">as_climb </option>
</select><br>
J'ai voulu mettre ca :
<p align=center>Pour télécharger la carte, cliquez dessus !! <br>
<font color="red">Les maps as (V.I.P.)<br>
</font><select name="map" id="map">
<option value="http://www.monlien....">as_alpine </option>
<option value=""http://www.monlien....>as_climb </option>
</select><br>
Mais cela fonctionne pas.Dsl mais je debute de cesoir dans le html merci d'avance