use CGI; my $cgi = CGI->new (); my $js = <<'JS'; function reportCreate() { var currenturl = document.URL; var url = "https://autoreport.com:8001/cgi-bins/createReport.pl?url="+currenturl; window.location.href = url ; return 1; } JS print qq{}; print $cgi->a({-href=>"javascript:void(0);", -onclick => "reportCreate();" }, 'Create Report
'); print qq{}; ## some Table html code here...please assume print qq{
Name}; print qq{
};