JavaScript Inheritance and Object Programming
Examples (of Class-Based Inheritance) from Using JSWindows: Lesson 7
© 21 May, 2013, Martin Rinehart
This code launches the Lesson 7 window:
Window_M
—movable windowSCREEN
—the top window container'win0'
—unique name (will be DOM ID)[100,400, 300,200]
—left,top, width,height8
—border width (other border specs get defaults){textAlign: 'center'}
—style config object{innerHTML: '<p>Drag Me!<p><p>Close Me!'}
—"other" object(properties/values to attach to DOM element)'Maximize This Window'
—the window title (drag handle)['max']
—list of window (re)sizing buttons to show
Feedback: Martin Rinehart at gmail dot com.
# # #