August 1999
Intermediate to advanced
1488 pages
72h 53m
English
function name(parm1, parm2, …, paramN) function name()
The function keyword is used for specifying JavaScript functions. Javascript functions typically contain a series of JavaScript statements that are grouped together to perform a specific task. The name is the name of the function and parm1 through paramN are any optional parameters.
Listing 6.123 shows how the function keyword is used. The function keyword defines the sendMessage function.
<html> <script lanuguage="JavaScript"> <!–– Hide function sendMessage(){ alert("The function key word is used to declare the sendMessage ... |
Read now
Unlock full access