console.log(remove_non_ascii('äÄçÇéÉêPHP-MySQLöÖÐþúÚ'));
console.log(remove_non_ascii('PHP ~!@#$%^&*()+`-={}[]|\\:";\'/?><., MySQL'));


function remove_non_ascii(str)
{
    var temp = str.split('');
    var ar = [];
    var t
    for(var i=0 ; i<temp.length ; i++)
    {
       t= (/[a-zA-Z]/).test(temp[i])
       if(t)
       {
           ar.push(temp[i]);
       }
    }
    return ar.join('');
}

Embed on website

To embed this program on your website, copy the following code and paste it into your website's HTML: