Réponse acceptée !
Coucou747 m'a répondu sur ce point, merci à lui, voici la solution :
comme ils le disent ici : http://www.commentcamarche.net/forum/affich-1996675-javascript-parametre-en-entree-sortie
<script>
var montableau=new Array(); montableau["case"] = "truc";
alert(montableau["case"]);
function transform(arg1, arg2){ arg1[arg2] = "machin"; } transform(montableau, "case");
alert(montableau["case"]); </script>
javascript n'est pas vraiment tres souple pour ca
|