• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 8. Meeting HTML's Powerful Friends > Creating functional functions

Creating functional functions

You can find lots of ready‐made code by surfing the Net. But the fun comes when you create your own code and put it to use in your Web designs. Functions are used in JavaScript, PERL, and C++. When you create a function, you create code that performs a specific task. The function accepts information from the user in the form of an argument. The argument is examined by the function's code, and a result is displayed. Listing A Really Simple Function shows a function in its simplest form.

							A Really Simple Function
							
function testPassword(argument) 
   {
the code;
   }



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint