I can't tell if you are misunderstanding something fundamental or just wording your question poorly.
In either case, it's not clear to me exactly what you want to do.
The browser sends a request to the server, which runs your CGI script, which generates output including your javascript, which is then sent back to the browser, which is where your javascript is run.
Your javascript code can send that data back to your CGI script on a subsequent request, whether it be a form submission, embedded in a link that is clicked, or via ajax.
How you do it depends on what you want to do.
In reply to Re: Is it possible to copy arrays from Javascript to Perl variable in the same Perl CGI script?
by sauoq
in thread Is it possible to copy arrays from Javascript to Perl variable in the same Perl CGI script?
by lightoverhead
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |