start page | rating of books | rating of authors | reviews | copyrights

Perl in a Nutshell

Perl in a NutshellSearch this book
Previous: Reference: autoEscape Chapter 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: autoEscape Perl in a Nutshell Next: Reference: checkbox
Reference: autoEscape Book Index Reference: checkbox

Library Navigation Links

Copyright © 2001 O'Reilly & Associates. All rights reserved.