<SCRIPT LANGUAGE="JAVASCRIPT">
function IsHangul(korname)
{
var temp="";
var len;
var found = false;
console.log("korname:" + korname);
console.log("korname.length:" + korname.length);
for(k=0; k<korname.length; k++)
{
temp=korname.charAt(k);
len = 0;
len = escape(temp).length;
console.log("temp:" + temp);
console.log("len:" + len);
if(len > 4)
{
found = true;;
break;
}
}
return (found);
}
if (IsHangul("가나다"))
{
console.log("한글");
}
else
{
console.log("한글 아님");
}
</SCRIPT>