Hmmmm. I don't see the problem ... the following sample code seems to work for me:
#!/usr/local/bin/perl use strict; use warnings; use CGI qw/:standard :html3/; print header; my $test_button = button(-name=>'Test',-value=>'Test Val',-onClick=>"r +eturn test('Testing!');"); print start_html(); print <<JAVASCRIPT; <script> function test (message) { alert(message); } </script> JAVASCRIPT print startform(); print $test_button; print endform(); print end_html();
In reply to Re: CGI, Javascript and Single Quotes
by ptum
in thread CGI, Javascript and Single Quotes
by rashley
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |