JavaScript Inheritance and Object Programming

Coding Tutorial, Chapter 5g

Add Custom Methods

© 21 July, 2013, Martin Rinehart


Results

Buttons that visibly respond to mouseover and mouseout, and that respond when clicked.

Code

These event-responding methods are added to the button's DOM element at the end of button.init().




The complete source file to this point.



Feedback: Martin Rinehart at gmail dot com.

# # #