VAR object (Object/HTML)

An object representing the HTML content delimited by the <VAR> tags.

Availability:

JavaScript - 1.5
JScript - 3.0
Internet Explorer- 4.0
Netscape version - 6.0
Inherits from:Element object
JavaScript syntax:IEmyVAR = myDocument.all.anElementID
IEmyVAR = myDocument.all.tags("VAR")[anIndex]
IEmyVAR = myDocument.all[aName]
-myVAR = myDocument.getElementById(anElementID)
-myVAR = myDocument.getElementsByName(aName)[anIndex]
-myVAR = myDocument.getElementsByTagName("VAR")[anIndex]
HTML syntax:<VAR> ... </VAR>
Argument list:anElementIDThe ID value of the element required
anIndexA reference to an element in a collection
aNameAn associative array reference
Event handlers:onClick, onDblClick, onDragStart, onFilterChange, onHelp, onKeyDown, onKeyPress, onKeyUp, onMouseDown, onMouseMove, onMouseOut, onMouseOver, onMouseUp, onSelectStart

Event nameJavaScriptJScriptNIEOperaNESECMADOMCSSHTMLNotes
onClick1.5 1.53.0 3.06.0 6.04.0 4.0n/a n/a n/a n/a n/a4.0 4.0Warning
onDblClick1.5 1.53.0 3.06.0 6.04.0 4.0n/a n/a n/a n/a n/a4.0 4.0Warning
onDragStart n/a3.0 3.0 n/a4.0 4.0 n/a n/a n/a n/a n/a n/a-
onFilterChange n/a3.0 3.0 n/a4.0 4.0 n/a n/a n/a n/a n/a n/a-
onHelp n/a3.0 3.0 n/a4.0 4.0 n/a n/a n/a n/a n/a n/aWarning
onKeyDown1.5 1.53.0 3.06.0 6.04.0 4.0n/a n/a n/a n/a n/a4.0 4.0Warning
onKeyPress1.5 1.53.0 3.06.0 6.04.0 4.0n/a n/a n/a n/a n/a4.0 4.0Warning
onKeyUp1.5 1.53.0 3.06.0 6.04.0 4.0n/a n/a n/a n/a n/a4.0 4.0Warning
onMouseDown1.5 1.53.0 3.06.0 6.0 4.0 4.0n/a n/a n/a n/a n/a4.0 4.0Warning
onMouseMove1.5 1.53.0 3.06.0 6.04.0 4.0 n/a n/a n/a n/a n/a4.0 4.0Warning
onMouseOut1.5 1.53.0 3.06.0 6.04.0 4.0n/a n/a n/a n/a n/a4.0 4.0Warning
onMouseOver1.5 1.53.0 3.06.0 6.04.0 4.0n/a n/a n/a n/a n/a4.0 4.0Warning
onMouseUp1.5 1.53.0 3.06.0 6.04.0 4.0n/a n/a n/a n/a n/a4.0 4.0Warning
onSelectStart n/a3.0 3.0 n/a4.0 4.0 n/a n/a n/a n/a n/a n/a-

Inheritance chain:

Element object, Node object

Refer to:

Element object