What are JavaScript widgets?
JavaScript widgets are developed by listening to mouse movements and clicks, and calling script methods that change the appearance and content of HTML elements on a web page. The author uses either plain HTML elements, such as div, span and img, which do not have a rich meaning of their own, or reuses an element (such as ) for a different meaning. A sighted user understands the author’s intended meaning from its appearance, and from changes to the appearance that occur during interactions. For example, a background color change when a mouse is over the element often indicates that an action will be performed when the mouse button is pressed. Perhaps the mouse click will make another HTML element display that has the appearance of a menu. Such techniques can be combined to simulate the look and feel of desktop widgets and applications.