Salut tout le monde...j'ai un petit souci avec le window.blur(); qui ne fonctionne pas quelqu'un peux t-il m'aide merci..
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 <script> function below() { Url = new Array; Url[0] = "http://www.lesite.net/"; Url[1] = "http://http://www.developpez.net/"; ChoixLien = Math.floor(Math.random() * Url.length) win=window.open(Url[ChoixLien],"mywindow",'toolbar=0,scrollbars=0,width=1366,height=768'); setTimeout("win.close()",2000); window.blur(); } </script> <body> <input type="button" VALUE="Click!" onClick="below()"> </body> </html>
Partager