B BUTTON object (Object/HTML) BUTTON object (Object/HTML) An object that represents a special MSIE element. Availability: DOM level 1 JavaScript 1.5 JScript 3.0 Internet Explorer 4.0 Netscape 6.0 Inherits from: Element object IE myBUTTON = myDocument.all.anElementID IE myBUTTON = myDocument.all.tags(”BUTTON”) [anIndex] IE myBUTTON = myDocument.all[aName] -myBUTTON = myDocument.getElementById (anElementID) -myBUTTON = myDocument.getElementsByName (aName)[anIndex] JavaScript syntax: -myBUTTON = myDocument.getElementsByTagName (”BUTTON”)[anIndex] HTML syntax: … anIndex A valid reference to an item in the collection aName The NAMEattribute of an element Argument list: anElementID The ID attribute of an element Object properties: accept, accessKey, alt, dataFld, dataFormatAs, dataSrc, form,name, status, tabIndex, type, value Object methods: createTextRange() Event handlers: onAfterUpdate, onBeforeUpdate, onBlur, onClick, onDblClick, onDragStart, onFilterChange, onFocus, onHelp, onKeyDown, onKeyPress, onKeyUp, onMouseDown, onMouseMove, onMouseOut, onMouseOver, onMouseUp, onResize,onRowEnter, onRowExit,onSelectStart This is an additional kind of button object, over and above that provided for the tag. Warnings: . This object is not the same as a Button object, which is a convenience class that is really instantiated as an Input object. Netscape only supports Button (Input) objects and does not support BUTTON objects. MSIE supports both. The properties of each type of button object are different. Element object, Element.isTextEdit, Form.elements[], FormElement object,Input object, Input.accessKey, onClick,TextRange object See also:
This entry was posted
on Thursday, November 15th, 2007 at 1:06 am and is filed under Coldfusion .
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response , or trackback from your own site.