Salut,
En utilisant le code suivant je voulais afficher la page index.jsp si showdata=Welcome User!
sinon afficher la page Authentification.jsp
mais quand j’exécute le code il m'affiche toujours la même page dans tout les cas.
quel est le problème?
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
var showdata = xmlHttp.responseText; 
    alert(showdata);
    var txt = new String("Welcome User!");
 
    if(txt=showdata)
    {window.open("index.jsp");}  
    else 
    {
        window.open("Authentification.jsp");
    }
Merci.