home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam  


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.