相关
name property
a string specifying the name of an object.
语法
1. objectname.name 2. framereference.name 3. framereference.frames.name 4. radioname[index].name 5. selectname.options.name 6. windowreference.name 7. windowreference.frames.name
objectname is either the value of the name attribute of any of the objects listed below or an element in the elements array.
framereference is a valid way of referring to a frame, as described in the frame object.
radioname is the value of the name attribute of a radio object.
selectname is either the value of the name attribute of a select object or an element in the elements array.
windowreference is a valid way of referring to a window, as described in the window object.
property of
description
the value of the name property differs between the window object and other objects.
window object
the name property for the window object is represented by form 6 and form 7 of the 语法. the name property represents the value of the windowname argument described in the window object 语法. both forms of the 语法 represent the same value.
name is a read-only property.
all other objects
the name property for all objects except window is represented by forms 1 through 5 of the 语法. for all objects except window, the name property initially reflects the value of the name attribute. changing the name property overrides this setting.
you can set the name property at any time.
the name property is the same for every radio button in a single radio object. individual radio buttons are referenced by their position in the radio array.
do not confuse the name property with