in reply to Re^2: call js function from CGI?
in thread call js function from CGI?

Check your browser's error console. I'm sure there's an error message waiting for you there, since what you posted isn't JavaScript.