bnj à tous, je voudrai récupérer les valeurs de 2 listes pour afficher une fenetre de confirmation qui méne vers une nouvelle page mais
le if ne marche que pour une sele liste pas les 2 en meme temps:
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
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 
<html> 
<head> 
<title>Document sans titre</title> 
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> 
 
<SCRIPT> 
 
function Lien() { 
[COLOR="RoyalBlue"]if(  (document.Choix.Liste1.options[3].selected == true)  && 
 
  (document.Choix1.Liste2.options[3].selected == true ) )  
{
 if( confirm('blalabla1') )   
     { parent.location.href="http://localhost:9006/JspServlet/ff1.jsp";}
 
 }} 
</SCRIPT> 
 
</head> 
<body> 
<p> </p> 
<p><strong><font size="+3">Essai de liste déroulante avec liens</font></strong></p> 
 
 
<FORM NAME="Choix"> 
<SELECT NAME="Liste1" onChange="Lien()" multiple="multiple" STYLE="width:300"  size="14"  > 
<OPTION VALUE="">a
<OPTION VALUE="">b
<OPTION VALUE="">c
<OPTION VALUE="">d
<OPTION VALUE="">feedback
<OPTION VALUE="">evaluation 
</SELECT> 
 </FORM> 
 
 
<FORM NAME="Choix1"> 
<SELECT NAME="Liste2" onChange="Lien()"  multiple="multiple" STYLE="width:300"  size="10" >
<OPTION VALUE="">Résolution 
<OPTION VALUE="">Apprentissage 
<OPTION VALUE="">Exercices de cours
<OPTION VALUE="">(TD)
<OPTION VALUE="">projet 
<OPTION VALUE=""> collectif
 
 </SELECT> 
</FORM> 
</body> 
</html>

please help me