Script html
Fermé
vincent
-
12 juin 2010 à 11:33
avion-f16 Messages postés 19246 Date d'inscription dimanche 17 février 2008 Statut Contributeur Dernière intervention 21 avril 2024 - 12 juin 2010 à 12:44
avion-f16 Messages postés 19246 Date d'inscription dimanche 17 février 2008 Statut Contributeur Dernière intervention 21 avril 2024 - 12 juin 2010 à 12:44
A voir également:
- Script html
- Script vidéo youtube - Guide
- Editeur html - Télécharger - HTML
- Html download - Télécharger - HTML
- Br html ✓ - Forum Webmastering
- /Var/www/html/index.html ✓ - Forum Linux / Unix
3 réponses
avion-f16
Messages postés
19246
Date d'inscription
dimanche 17 février 2008
Statut
Contributeur
Dernière intervention
21 avril 2024
4 497
12 juin 2010 à 11:38
12 juin 2010 à 11:38
Après window.open, fais un window.focus()
salut merci de me répondre mais je ne comprend pas trop comment ca marche
j'ai fait ca :
<script>
function chapichapo()
{
w1 = window.open windows.focus() ("http://le-site-d'un-ami.com" );
}
</script>
<body>
<a href="https://mon-site-a-moi.com/" onclick="chapichapo();">cliquer ici</a>
je ne sait pas ou mettre windows.focus().
je ne connais pas trop dans le language .
j'ai fait ca :
<script>
function chapichapo()
{
w1 = window.open windows.focus() ("http://le-site-d'un-ami.com" );
}
</script>
<body>
<a href="https://mon-site-a-moi.com/" onclick="chapichapo();">cliquer ici</a>
je ne sait pas ou mettre windows.focus().
je ne connais pas trop dans le language .
avion-f16
Messages postés
19246
Date d'inscription
dimanche 17 février 2008
Statut
Contributeur
Dernière intervention
21 avril 2024
4 497
12 juin 2010 à 12:44
12 juin 2010 à 12:44
<script type="text/javascript"> var w1 = null; function chapichapo() { w1 = window.open("http://le-site-d'un-ami.com"); windows.focus() } </script> <body> <a href="https://mon-site-a-moi.com/" onclick="chapichapo();">cliquer ici</a>