String.prototype.Repeat = function (Fois) /* =================== # fois un (des) caractère(s) ==================== exemples alert("*123".Repeat(10)); */ { var tmp = new Array(Fois+1); return tmp.join(this); }