Bien plus simple (avec le onkeydown) :
<script language="javascript">
function Telephone(kval, sep) {
if((kval.length == 2 || kval.length == 5 || kval.length == 8 || kval.length == 11)) {...
Type: Messages; Utilisateur: sachav
Bien plus simple (avec le onkeydown) :
<script language="javascript">
function Telephone(kval, sep) {
if((kval.length == 2 || kval.length == 5 || kval.length == 8 || kval.length == 11)) {...
<script language="javascript">
function Telephone(ndt) {
if(isNaN(ndt*1)) {
return false;
} else {
ndt = ndt.toString();
}
var newTel = "";
var count = 0;
for(i=0; i!=ndt.length; i++) {
Vous avez un bloqueur de publicités installé.
Le Club Developpez.com n'affiche que des publicités IT, discrètes et non intrusives.
Afin que nous puissions continuer à vous fournir gratuitement du contenu de qualité, merci de nous soutenir en désactivant votre bloqueur de publicités sur Developpez.com.