Perl in a Nutshell

Perl in a NutshellSearch this book
Previous: Reference: autoEscapeChapter 10
The CGI.pm Module
Next: Reference: checkbox
 

button

 print $query->button('name','function')

Generates a JavaScript button.

name

The name of the button.

function

The function to execute when the button is clicked.

Using named parameters, the syntax is:

print $query->button(-name=>'name',
                     -value=>'label',
                     -onClick=>"function");
-value=>'label'

The label to display for the button.


Previous: Reference: autoEscapePerl in a NutshellNext: Reference: checkbox
Reference: autoEscapeBook IndexReference: checkbox



Banner.Novgorod.Ru