Can I get the user name in JavaScript?

Can I get the user name in JavaScript?