The buttons respond only to onClick events and cannot pass any particular properties of their own, such as value or name. Command buttons are used extensively in the Character Entities object shown in Figure 1-6. (The object was developed before Dreamweaver??™s Other Characters object was created.) Each character entity is a separate Command button, written in the following form: onClick=???getChar(???¡??™,??™¡??™)???> NOTE NOTE BC 17 Creating and Using Objects FIGURE 1-6 This custom Character Entities object uses 96 separate Command buttons. Each character entity symbol in each line has a specific purpose. The value is the character displayed on the button; the first argument in the getChar() function is written to a hidden field and eventually sent to the Web page; and the second argument is used to display the selected character in a text box: function getChar(val,val2) { document.theForm.charValue.value=val document.theForm.txChar.value=val2 } When this object is at work, the user makes a selection and clicks OK, and the objectTag() function reads the value from the hidden field and writes it into the Web page: function objectTag() { return document.theForm.charValue.value; } Command buttons can be used to fire any custom JavaScripts and pass any necessary information to be processed eventually by the objectTag() function.