Previous Example-|-Next Chapter's Examples-|-Return to Chapter Listing
Example 7.19:
Passing Parameters to a Function Object
[This example works with Netscape Navigator 3. It will not work with Internet Explorer 3.]
Type a number into the text box. Clicking the button calls a function which passes a number to a function object. The object divides the number in two, then passes it back:
In the HEAD we have this script:
In the BODY of the page we have this form:
Previous Example-|-Next Chapter's Example-|-Return to Chapter Listing