Webmaster in a Nutshell, Third Edition

Team-Fly    

 
Webmaster in a Nutshell, 3rd Edition

By Robert Eckstein, Stephen Spainhour

Table of Contents
Chapter 14.  The CGI.pm Module

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.


Team-Fly    
Top

Категории