salut,
voila je ve creer une page avec deux bouton en html qui redirige chacun vers une page, comment faire svp, merci
je taff sur php, html, postgresql+++
<form>
<input type="button" value="ALLER SUR GOOGLE" onclick="window.open('http://www.google.com', 'exemple', 'height=600, width=800, top=90, left=350, toolbar=no, menubar=no, location=yes, resizable=yes, scrollbars=yes, status=no');">
</form>
<a href="http://www.google.com" onclick="window.open('http://www.google.com', 'exemple', 'height=600, width=800, top=90, left=350, toolbar=no, menubar=no, location=yes, resizable=yes, scrollbars=yes, status=no'); return false;">Google</a>
et ce qui est bizarre, il n y a pas de balise <head> malgré qu'il y a plusieurs fonction déja !!c'est pas obligatoire mais c'est mieux de déclarer tout les script dans le head (voir de le mettre dans u autre fichier)
<?php echo '<input type="button" onclick="location.href=\''.( ( $variable == 1 ) ? 'url1' : 'url2' ).'\'" value="texte du bouton" />'; ?>
<?php
echo '<input type="button" onclick="location.href=\'';
if ( $variable == 1 ){
echo 'url1'
}else{
echo 'url2'
}
echo '\'" value="texte du bouton" />';
?>
<INPUT border="0" src="../images/icon-32-apply.png" type="image" Value="submit" align="middle" >
<INPUT border="0" src="../images/icon-32-cancel.png" type="button" Value="Annuler" align="middle" onclick='location.href="articles.php"'>
<button onclick="window.location.href ='mapage.html';">lien1</button>
<a href='mapage">
<button>lien1</button>
</a>
Combien cela coûte-t-il au total ? Quelles aides apportent l'état et les acteurs du marché pour alléger cette charge non choisie ? Tous les détails sur Commentçamarche.net.