If I recall correctly those variables are actually handed over to the CGI script/process by the server, so I don't think they're available client-side by default. However, you could read the variables on the server when you build the page, and write them into javascript variables or hidden input fields in the document for access client-side.
Any ideas on how I can retreive cgi variables via javascript? I'm googling and finding conflicting or seemingly invaluable info.
I basically want to set a javascript variable equal to cgi.server_name
var hostName = 'cgi.server_name';
That's obviously not working. Ideas?