最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

ID Attribute | id Property

Internet Development Index

Retrieves the string identifying the object.

Syntax

HTML<ELEMENT ID = sID... >
Scriptingobject.id [ = sID ]

Possible Values

sIDString that specifies or receives any alphanumeric string that begins with a letter. The underscore (_) can also be used.

The property is read/write. The property has no default value.

Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. For more information, see About Dynamic Properties.

Remarks

In versions earlier than Microsoft® Internet Explorer 5, this property is read-only.

The id should be unique throughout the scope of the current document. If a document contains more than one object with the same identifier, the objects are exposed as a collection that can be referenced only in ordinal position.

Example

This example sets the ID attribute of each cell of a table. When the user clicks a cell, the object of the cell is passed to a function which returns the object's ID.

<SCRIPT>
function getID(oObject)
{
var id = oObject.id;
alert("This object's ID attribute is set to \"" + id + "\".");
}
</SCRIPT>
<TABLE BORDER COLS=3><TR>
<TD ID="firstCell"  onclick="getID(this);">Table Cell 1</TD>
<TD ID="secondCell" onclick="getID(this);">Table Cell 2</TD>
<TD ID="thirdCell"  onclick="getID(this);">Table Cell 3</TD>
</TR></TABLE>
This feature requires Microsoft® Internet Explorer 4.0 or later. Click the following icon to install the latest version. Then reload this page to view the sample.

Standards Information

This property is defined in HTML 4.0 Non-Microsoft link and is defined in World Wide Web Consortium (W3C) Document Object Model (DOM) Level 1 Non-Microsoft link.

Applies To

STYLE, A, ACRONYM, ADDRESS, APPLET, AREA, B, BASE, BASEFONT, BDO, BGSOUND, BIG, BLOCKQUOTE, BODY, BR, BUTTON, CAPTION, CENTER, CITE, CODE, COL, COLGROUP, COMMENT, CUSTOM, DD, DEL, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, FRAME, FRAMESET, HEAD, hn, HR, HTML, I, IFRAME, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=hidden, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, INS, ISINDEX, KBD, LABEL, LEGEND, LI, LINK, LISTING, MAP, MARQUEE, MENU, nextID, NOBR, NOFRAMES, NOSCRIPT, OBJECT, OL, OPTION, P, PLAINTEXT, PRE, Q, RT, RUBY, S, SAMP, SCRIPT, SELECT, SMALL, SPAN, STRIKE, STRONG, styleSheet, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TITLE, TR, TT, U, UL, VAR, WBR, XML, XMP
红原县| 平凉市| 贞丰县| 剑阁县| 新竹市| 太和县| 宜兰市| 张掖市| 喜德县| 平南县| 阿图什市| 噶尔县| 武威市| 漾濞| 汶上县| 临夏市| 西城区| 沙河市| 米易县| 永丰县| 正蓝旗| 桃园县| 徐汇区| 灌南县| 合山市| 玉屏| 巴彦淖尔市| 星座| 广昌县| 望谟县| 定陶县| 大理市| 大关县| 邢台市| 马龙县| 永昌县| 林州市| 临海市| 马边| 全州县| 建瓯市|