in reply to How do I use a JavaScript script in Perl-CGI?
#c:\perl\bin\perl use CGI qw/escape unescape/; $query = new CGI; ######################################### print $query->header(); ######################################### #send javascript functions into head #You can include external style sheets, javascript , metatag info etc print $query->start_html(-title => 'Place page title here', -script=>{ +-language=>'javascript', -src=>'path to ->/javascript/functions.js'}); ######################################### #Put your html output here and you are good to go!!!!! ######################################### #Finish CGI.pm Output print $query->end_html; #########################################
|
|---|