Clics 370 |
Appel d'une page HTML depuis javascript
window.location.href permet une redirection de la page en cours vers l’URL précisée en paramètre, cela s’écrit de la manière suivante :
A partir d'un click :
<img src='lien_vers_image' onClick=’window.location.href=”http://votre_url"'>
ouvrir dans une nouvelle fenêtre <input type=button value=go onClick=’window.open ("http://votre_url","nom_de_la_fenetre","options_nouvelle_fenetre");' >
En options largeur (width), la hauteur (height), si la fenêtre est redimensionnable (resizable), afficher la barre de menu (menubar), etc…
onClick=’window.open("http://votre_url","nom_de_la_fenetre","menubar=no, status=no, width=100px" '>)
Total des visiteurs : 584068
dont aujourd'hui : 0 En ligne actuellement : 2 Total des clics 1423774
|