Web hosting compare - B BODY object (Object/HTML) BODY object (Object/HTML)

B BODY object (Object/HTML) BODY object (Object/HTML) An object that represents the body of a document. Availability: DOM level 1 JavaScript 1.5 JScript 3.0 Internet Explorer 4.0 Netscape 6.0 Inherits from: Element object IE myBODY = myDocument.all.anElementID IE myBODY = myDocument.all.tags(”BODY”) [anIndex] IE myBODY = myDocument.all[aName] -myBODY = myDocument.body -myBODY = myDocument.getElementById (anElementID) -myBODY = myDocument.getElementsByName (aName)[anIndex] JavaScript syntax: -myBODY = myDocument.getElementsByTagName (”BODY”)[anIndex] HTML syntax: … anIndex A valid reference to an item in the collection (should be 0) aName The nameattribute of an element Argument list: anElementID The ID attribute of an element Object properties: accessKey, aLink,background,bgColor, bgProperties, bottomMargin, leftMargin, link,noWrap, recordNumber, rightMargin,scroll, tabIndex, text,topMargin, vLink Object methods: Event handlers: Collections: createControlRange(), createTextRange() onAfterUpdate, onBeforeUnload,onBeforeUpdate, onChange, onClick, onDataAvailable, onDataSetChanged, onDataSetComplete, onDblClick, onDragStart, onErrorUpdate, onFilterChange, onHelp, onKeyDown, onKeyPress, onKeyUp, onMouseDown, onMouseMove, onMouseOut, onMouseOver, onMouseUp, onRowEnter, onRowExit, onScroll, onSelectStart, onUnload controlRange[] Although this generally represents the tag, there are also properties that relate to the body that belong to the Documentand Windowobjects. In MSIE, there is also a HEAD object, which contains related information. The tag is a block-level tag. You can’t place a tag into the document but taken in the context of a framed environment it manifests itself as if it were a block-level tag. Background object, Document object, Document.bgColor, Document.body, Element object, Element.isTextEdit, Element.offsetParent, Frame object,HEAD object, Input.accessKey, Window object See also:

Leave a Reply