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

Chapter 3. Language Essentials > Working with Functions That Return Values

Working with Functions That Return Values

(Netscape and Internet Explorer/Mac)

Up to this point, all the functions that we've seen simply do something and then return. Sometimes, though, we want to return a result of some kind. Script 3.9 (based on Script 3.2) checks on the fly to see whether or not the user has QuickTime enabled, instead of initializing a variable when the page first loads.

Script 3.9. A function can return a value, which can then be checked.



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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