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

Chapter 16. Miscellaneous Behaviors > Calling a Behavior from a Link

16.5. Calling a Behavior from a Link

As seen earlier, you can use an event associated with an object to execute a behavior. You can also call the function directly from a hyperlink using the javascript: protocol followed by the name of the function to execute and its associated parameters. An example of this technique is shown in Figure 16-9.

Figure 16-9. Calling JavaScript directly via a hyperlink



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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