Starting a web site - JavaScript Programmer’s Reference Inherits from: Element object IE

JavaScript Programmer’s Reference Inherits from: Element object IE myLI = myDocument.all.anElementID IE myLI = myDocument.all.tags(”LI”)[anIndex] IE myLI = myDocument.all[aName] -myLI = myDocument.getElementById(anElementID) -myLI = myDocument.getElementsByName(aName)[anIndex] JavaScript syntax: -myLI = myDocument.getElementsByTagName(”LI”) [anIndex] HTML syntax:

  • anIndex A reference to an element in a collection aName An associative array reference Argument list: anElementID The ID value of an Element object Object properties: type, value Event handlers: onClick, onDblClick, onDragStart, onFilterChange, onHelp, onKeyDown, onKeyPress, onKeyUp, onMouseDown, onMouseMove, onMouseOut, onMouseOver, onMouseUp, onSelectStart The
  • tag is a block-level tag. That means that it forces a line break before and after itself. The DOM level 1 specification refers to this as a LIElement object See also: Element object, OL.compact Property JavaScript JScript N IE Opera DOM HTML Notes type 1.5 + 3.0 + 6.0 + 4.0 + 1 + - value 1.5 + 3.0 + 6.0 + 4.0 + 1 + - Event name JavaScript JScript N IE Opera DOM HTML Notes onClick 1.5 + 3.0 + 6.0 + 4.0 + 3.0 + 4.0 + Warning onDblClick 1.5 + 3.0 + 6.0 + 4.0 + 3.0 + 4.0 + Warning onDragStart 3.0 + 4.0 + - onFilterChange 3.0 + 4.0 + - onHelp 3.0 + 4.0 + Warning onKeyDown 1.5 + 3.0 + 6.0 + 4.0 + 3.0 + 4.0 + Warning onKeyPress 1.5 + 3.0 + 6.0 + 4.0 + 3.0 + 4.0 + Warning onKeyUp 1.5 + 3.0 + 6.0 + 4.0 + 3.0 + 4.0 + Warning onMouseDown 1.5 + 3.0 + 6.0 + 4.0 + 3.0 + 4.0 + Warning onMouseMove 1.5 + 3.0 + 6.0 + 4.0 + 4.0 + Warning Table continued on following page 1332

  • Leave a Reply