in reply to Retrieving value from HTML->Javascript->Perl

The result on page that I get is UNDEFINED.

I'm not clear on whether you're getting a 404 page in the popup, or whether the CGI is producing empty results.

If the former, I suspect you have a problem with this line"cgibin/"+text, Typically, the CGI directory is named "cgi-bin", not "cgibin". Double-check this. Also, you might have better luck using a fully qualified URL. E.g.," ...