|
January 9, 2001 Multiple Events in IE 5.x Tips: January 2001
Yehuda Shiran, Ph.D.
|
|
Internet Explorer 5.0 introduced a way to attach more than one event of the same type to an element. Use the attachEvent() method for that:
The following code creates a button and attaches two
Play around with it now in Internet Explorer 5.x. Observe the two alert boxes for the two event handlers: For more on the Internet Explorer event model, go to Column 10, The Internet Explorer Event Model.
People who read this tip also read these tips: Look for similar tips by subject: |