javascript手冊-m&n[3]

[入库:2005年8月18日] [更新:2007年3月24日]

本文简介:选择自 longj 的 blog

相关

  • max method

    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

  • button, checkbox, frame, hidden, password, radio, reset, select, submit, text, textarea, window
  • options array

    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

  • 本文关键:javascript
     

    本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

    go top