How do I check if a variable contains Chinese or Japanese characters? I know that this line works:
if (document.body.innerText.match(/[\\u3400-\\u9FBF]/)) >
afaik you can to the same with a variable... document.body.innerText just returns the text of the body. Therefore you can just do
document.body.innerText
myvar.match(...)
Here's an example: http://snipplr.com/view/15357/