E Property
Euler's constant and the base of natural logarithms, ApproxImately 2.718.
grammar
Math.e
Property of
Math
description
Because e is a constant, IT is a read-only Property of Math.
example
The Following Example Displays Euler's Constant:
Document.write ("Euler's constant is" math.e)
See Also
LN2, LN10, LOG2E, LOG10E, PI, SQRT1_2, SQRT2 Properties
Elements Array An Array Objects Corresponding To Form Elements (Such as Checkbox, Radio, and Text Objects) in Source Order. Syntax 1. FormName.ersion [Index]
2. Formname.ements.Length
formName is either the name of a form or an element in the forms array. index is an integer representing an object on a form. Property of description form You can reference a form's elements in your code by using the elements array. This array contains an entry for each object (button, checkbox, hidden, password, radio, reset, select, submit, text, or textarea object) in a form in source order. for example, if a form has a text field and two checkboxes, these elements are reflected as formName.elements [0], formName.elements [1], and formName.elements [2]. Although you can also reference a form's elements by using the element's name (from the nAME attribute), the elements array provides a . way to reference form objects programatically without using their names For example, if the first object on the userInfo form is the userName text object, you can evaluate it in either of the following ways: userInfo.userName.value
Userinfo.Elements [0] .value
To obtain the number of elements on a form, use the length property:. FormName.elements.length Each radio button in a radio object appears as a separate element in the elements array Elements in the elements array are read-only For example.. , the statement formName.elements [0] = "music" has no effect. The value of each element in the elements array is the full htm statement for the object. Properties length reflects the number of elements on a form See the examples for example The name Property. See Also form ObjectElements Property An Array Objects Corresponding To Form Elements in Source Order. See elements array.
encoding property A string specifying the MIME encoding of the form. Syntax formName.encoding formName is either the name of a form or an element in the forms array. Property of form Description The encoding property initially reflects the ENCTYPE attribute of the