Why would you want to do such a thing?
I once had a discussion about JavaScript being evil or not. I thought it isn't. I also don't think knives are evil. One could do practical and useful things with them. One could also do bad things with it.
Since I had that particular discussion, I've seen more and more bad uses for JavaScript (and JScript, of course). This is just one more. Why do you want to know the name of my computer? If I'd want you to know, I'd tell you.
The kind of script you are trying to write here, is the kind of script that sets people up against a certain language. Well, you won't set me up against JavaScript, for I have seen its beauty. But more and more, I am thinking about disabling JS in my browser.
Many of you will most probably disagree with this reply because you think I don't offer any help to
krt6 and maybe because you think I'm a little too offensive. That's ok. But let me tell you that I helped
krt6 and many others in my way. Not by showing him the path to the solution of his problem, but by disagreeing with any kind of unwanted "spyware". Yes, one could say it's possible to disable JavaScript and yes, one could say that *will* prevent this kind of spyware. But no, dear readers, not everyone knows his computer inside out and no, dear readers, not everyone knows how HTML works, how JavaScript works, how CGI works or even how exactly Internet works. Shouldn't we, the ones with knowledge, protect such people instead of just getting as much information as possible about them? It's not our right to abuse their ignorance.
Thank you.
--MUBA.
Update: slightly altered the message.