bonjour,

je suis tout débutant en JS et j'aimerai savoir comment
1) Créer un popup
2) L'appeler

j'ai fait çà mais çà ne fonctionne pas

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
 
function Erreur(reference)
{ 
 Fenetre = window.open("",'Erreur de quantité','width=600,height=600,toolbar=no,scrollbars=no,resizable=no');
 Fenetre.document.write("<body LA QUANTITE MÂLE COMMANDEE POUR +"reference"+ EST SUPERIEURE A CELLE EN STOCK. MERCI DE LA RESSAISIR."); 
 Fenetre.document.write("</body>"); 
} 
 
// des traitement divers
 
echo '<a href=javascript:Erreur("'.$mesresultats[$position]['REFERENCE'].'")
/a>';
merci