click

charAt(),indexOf()

function checkSpecialChar()

{

var allow=" abcdefghijklmnopqrstuvwxyz";

var my="sanThosh";

 

for(a=0;a<my.length;a++)

{

if(allow.indexOf(my.charAt(a))>0)

document.write(allow.indexOf(my.charAt(a)));

else

document.write('Special char');

document.write(my.charAt(a));

document.write('<BR>');

}

}

 

Send mail to santhosh_emids@yahoo.com with questions or comments about this web site.
Last modified: November 16, 2000