Getting the web server name through Javascript

Is it possible to get the web - server name through Javascript? If yes, how?
My code goes as follows. I get an error after executing this

function disp()
str1 =;

<a href=“##” onclick=“disp();”>Click me</a>
</html> is an Object, not a Method. Basically what I’m saying is get ride of the open and close parenthesis.

It should just be:
str1 =;

and not:
str1 =;

Thanx a ton hyp