Jump to content
Larry Ullman's Book Forums

LBPSlava

Members
  • Posts

    1
  • Joined

  • Last visited

LBPSlava's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. In Chapter 8, pages 167-169, the advantages of the four methods of adding an event listener to an object are discussed, with various pro and cons. One thing is not mentioned at all: how do you pass an argument to a function that is an event listener. Then around page 174, an example is given where an onload event listener is assigned an anonymous function which includes two function calls--one of them with an argument. Question: are anonymously assigned functions the only way to allow passing an argument to an event listener? Is this discussed somewhere in the book where I missed it? Thanks!
×
×
  • Create New...